You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kyleconroy
changed the title
The mysql field contains the go keyword, and it is used as a query parameter, an error will be generated
Generated code uses Go keyword resulting in a syntax error
Sep 26, 2023
Version
v1.18.0
What happened?
MySQL
config :
query_parameter_limit
= 3mysql table has field named
switch
, then gen code will like this:but
switch
is golang keyword. Does sqlc need to be compatible with this situation?Playground URL
https://play.sqlc.dev/p/3f5d54e71a2309b4fa02b40cb1d2322f9eccf6359cac47d3b22371a6628baea2
The text was updated successfully, but these errors were encountered: