sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

fix: escape constant names in queries

Open snprajwal opened this issue 7 months ago • 3 comments

Constant names in queries were not escaped, leading to keywords being emitted as constant names in the generated output. This has been updated to be escaped, and any has been added as a reserved keyword as of Go 1.18.

This also addresses the lint raised by gopls on sqlc's generated Go files for modernizing the usage of an empty interface for the any type.

snprajwal avatar May 13 '25 14:05 snprajwal