yjp 1 жил өмнө
parent
commit
212e352ee8

+ 4 - 1
sql/parse_table_row.go

@@ -190,7 +190,10 @@ func formOutputEntity(tableRow map[string]any, outputEntity any) error {
 					return errors.New("slice仅支持[]string")
 				}
 
-				strValue := tableRowValue.(string)
+				strValue, ok := tableRowValue.(string)
+				if !ok {
+					return errors.New("slice仅支持[]string")
+				}
 
 				strParts := strings.Split(strValue, element.SplitWith)
 				if strParts == nil || len(strParts) == 0 {