-
-
Notifications
You must be signed in to change notification settings - Fork 496
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 should I insert array into column in postgresql? #274
Comments
Currently SqlKata doesn't handle non-primitive types on insert/update operations, A side question, how are you getting the compiled SQL, since SqlKata doesn't generate symbols like these ones: $1, $2 etc .... |
That was a log from Npgsql |
Could you please post the log generated from the QueryFactory class https://sqlkata.com/docs/execution/logging? |
Of course: INSERT INTO "tablename" ("id", "name", "ids") VALUES ('1784d656-ce06-4114-b7c3-c86b899ff5de', 'some', '8d8b8ef4-7ba0-49cb-835f-2f40ba56d626','5194ccb5-00b7-4137-9c97-de07bc706d03','15e99f59-cd7c-4ca4-81e8-61ed0b7b0d44') |
@mifopen could you please submit a PR with a failed unit test, or post the steps to reproduce the issue, like the create table statement, insert table statement etc... + the Postgres version you are using. |
as per the Postgres docs https://www.postgresql.org/docs/current/arrays.html
|
For code
I get
and
Npgsql.PostgresException (0x80004005): 42601: INSERT has more expressions than target columns
The text was updated successfully, but these errors were encountered: