I am trying to bulk insert into a table with TEXT column.
This is my code:
ColumnType::Text => {
let value: Option<&str> = row.get(order);
let value = value.map(|v| v.to_string());
new_row.push(value.into_sql());
And it returns an error:
called Result::unwrap() on an Err value: BulkInput("invalid data type, expecting Some(VarLenSized(VarLenContext { type: Text, len: 2147483647, collation: Some(Collation { info: 13632521, sort_id: 0 }) })) but found String(Some(\"405 Method Not Allowed: \\"Request did not meet this resource's requirements.\\"\"))")
I didn't found any example of how to insert into a TEXT column.
Can you please help me?
Hi,
I am trying to bulk insert into a table with TEXT column. This is my code: ColumnType::Text => { let value: Option<&str> = row.get(order); let value = value.map(|v| v.to_string()); new_row.push(value.into_sql());
And it returns an error: called
Result::unwrap()
on anErr
value: BulkInput("invalid data type, expecting Some(VarLenSized(VarLenContext { type: Text, len: 2147483647, collation: Some(Collation { info: 13632521, sort_id: 0 }) })) but found String(Some(\"405 Method Not Allowed: \\"Request did not meet this resource's requirements.\\"\"))")I didn't found any example of how to insert into a TEXT column. Can you please help me?
Thank you, Marian