-
Notifications
You must be signed in to change notification settings - Fork 344
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
insert_into() with add() does not support verbatim #489
Comments
I don't have a good solution for this, I am afraid. Multi line inserts values in a vector of tuples. For text fields they expect strings, but The quick workaround would be to use individual inserts. A more long term solution could be
Both would be non-trivial and take a while, I think. |
The same problem happens when doing insert_into with a select field. auto q = insert_into(table).columns(table.x); Note that it works when doing a single insert. |
Yeah, that won´t work, because a sub select is not of type As mentioned above, the values are stored in a vector. But maybe that can be changed. I'll think about it. |
It seems like the following is valid:
But not when using add:
I get the following compiler error (gcc 10)
My table is defined as
I have added the mapping of
INTEGER[]
totext
in ddl2cpp.PS: There is another bug here where
MyTable
does not generate due to the arrayINTEGER[]
(see #488)The text was updated successfully, but these errors were encountered: