We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 am trying to do an update of a column with a reserved word as name in mysql.
Models und set value generate invalid SQL:
type Model struct { ID: int, Load: string } table.UPDATE(table.Load).MODELS(model{Load: "test"}).Where(...
AND
table.UPDATE(table.Load).SET(mysql.String("test")).WHERE(...
generates:
UPDATE table SET load = 'test' WHERE ...;
set column with value generates valid SQL:
table.UPDATE().SET(table.Load.SET(mysql.String("test"))).WHERE(...
generates the correct SQL:
UPDATE uwaa.node_status SET `load` = 'test' WHERE ...;
The text was updated successfully, but these errors were encountered:
Looks like a bug.
Sorry, something went wrong.
The bug is fixed in the latests v2.5.0 release.
No branches or pull requests
I am trying to do an update of a column with a reserved word as name in mysql.
Models und set value generate invalid SQL:
AND
generates:
set column with value generates valid SQL:
generates the correct SQL:
The text was updated successfully, but these errors were encountered: