-
Notifications
You must be signed in to change notification settings - Fork 66
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
I can't add in false values in an insert statement #93
Comments
The tests don't actually test putting in a false to the db. The tests also don't regularly test the argument substitution. The test and package don't treat the order of the argument substitution like other sql packages do. This package wants the order to be that of the order of the statements in the create statement. Not of the sql statement you want to execute. |
Hi, Thanks for reporting, this is really strange. I'll take a look |
Ok so |
Can you check |
Yes there is also an issue with the order of the arguments that get passed in. The substitutions really need to be used more in the tests. |
I'm sorry, I don't understand. Can you give me an example ? |
I use this with sqlx primarily the "NamedExec" func. I can't insert false values into the db. It throws a syntax error.
I can enter in a true value. The "empty" value for a boolean is false. When a struct has an empty bool I can't add that value to the db.
#92
The text was updated successfully, but these errors were encountered: