-
Notifications
You must be signed in to change notification settings - Fork 550
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
mssql: bind failed to execute query: mssql: Operand type clash: uniqueidentifier is incompatible with money #1406
Comments
here's the mssql compose I used, just in case it makes it easier to get a repro set up |
tried swapping to uuid via type replacement (mentioned in #1381) google/uuid and gofrs/uuid/v5. same errors |
and here's the output after I add
Pretty sure it's interpreting the $1 as 1.00 in the money type instead of a parameter. So I don't think it's a uniqueidentifier issue. |
ok, I figured it out. I was using the wrong sql driver when creating the db
needed to be
pebkac |
If you're having a generation problem please answer these questions before submitting your issue. Thanks!
What version of SQLBoiler are you using (
sqlboiler --version
)?SQLBoiler v4.16.2
What is your database and version (eg. Postgresql 10)
MSSQL 2022. docker container,
mcr.microsoft.com/mssql/server:2022-latest
Can provide docker compose file if it helps
If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)
If this happened at runtime what code produced the issue? (if not applicable leave blank)
Full repro here with table and data script: https://github.com/mike-tesch/sqlboiler_test
What is the output of the command above with the
-d
flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)
Included in https://github.com/mike-tesch/sqlboiler_test/blob/main/testtable.sql
Further information. What did you do, what did you expect?
I think it generated correctly and I think the code should be correct. Seems like something in the parameter binding for uniqueidentifier?
The text was updated successfully, but these errors were encountered: