修复'Invalid column type Real at index: 9, name: match_score'错误 问题根本原因: 1. 数据库schema中match_score字段定义为REAL类型 2. 数据插入时错误地将REAL/INTEGER字段转换为字符串 3. 数据读取时错误地尝试将REAL/INTEGER字段作为String类型获取 修复内容: 1. 修正matching_segment_results表相关字段的数据插入逻辑 - match_score: 直接使用f64类型而非转换为字符串 - segment_duration, start_time, end_time: 直接使用u64类型 2. 修正matching_failed_segment_results表相关字段的数据插入逻辑 - segment_duration, start_time, end_time: 直接使用u64类型 3. 修正row_to_segment_result和row_to_failed_segment_result函数 - 直接使用原始数据类型而非字符串解析 这确保了数据库操作的类型一致性,解决了get_matching_result_detail接口的错误。 |
||
|---|---|---|
| .. | ||
| desktop | ||