param column xxx has type type:String field_name:\"xxx\" but collection field definition is string
Expected Behavior
check string type should be passed.
The code
if column.Type() != field.DataType {
return nil, 0, fmt.Errorf("param column %s has type %v but collection field definition is %v", column.Name(), column.FieldData(), field.DataType)
}
should change to
if column.Type().String() != field.DataType.String() {
return nil, 0, fmt.Errorf("param column %s has type %v but collection field definition is %v", column.Name(), column.FieldData(), field.DataType)
}
I use varchar as field type,insert is ok,but when upsert,it raise "param column xxx has type type:String field_name:"xxx" but collection field definition is string" @xiaofan-luan
Is there an existing issue for this?
Current Behavior
param column xxx has type type:String field_name:\"xxx\" but collection field definition is string
Expected Behavior
check string type should be passed.
The code
should change to
Steps To Reproduce
No response
Environment
No response
Anything else?
No response