sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.54k stars 809 forks source link

fix(golang): escape q field name #3647

Closed vitords closed 1 hour ago

vitords commented 1 month ago

Adds q to the reserve keywords.

Although not a golang keyword per se, it works as one since q is reserved as a shorthand for Queries in the generated code so there's no need to rename the reserved keywords list.

Fixes #3627.