Open go-mez opened 2 years ago
@go-mez would my proposal for giving the developer control of the input and output parameters to the query (including naming, nullability, etc) solve this issue for you?
sqlc.arg can at least get you a better name https://play.sqlc.dev/p/1642ad7238085024e55559bdb875cf8928b39ab0521045df66289a6bc798505d
Version
1.12.0
What happened?
When generating an insert query using the
NULLIF
function, the field name is not respected and will be generated asnullif
.Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/fbe1bfb0158f637dd53b3ad90e19ecdc59c27fbf7568cd332b9a120af81f39cc
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go