Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert into a TEXT column #319

Open
marian-nedelescu opened this issue Oct 31, 2023 · 0 comments
Open

How to insert into a TEXT column #319

marian-nedelescu opened this issue Oct 31, 2023 · 0 comments

Comments

@marian-nedelescu
Copy link

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 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?

Thank you,
Marian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant