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
It is throwing an invalid error synthax, because limit, and offset are exclusive and reserved to database syntax (in my case POSTGRES).
Proposal
Either parse a sqlc.arg argument as a String synthax, and treat arguments wrapped with String notation as a literal, OR make parameter args unreserved.
Not sure is this a simple task, since you would probably have to "clean up" arguments, then parse/verify the query validity, and then reinject the args, in order for it to work. Not sure how internals parse it.
If its too much hassle just close it, would be nice tho if i could have nice intention in params to know what the param is about. But not a big deal really.
What database engines need to be changed?
This is not exclusive to Postgres, probably every SQL based distro
What programming language backends need to be changed?
Golang
The text was updated successfully, but these errors were encountered:
What do you want to change?
When using reserved keywords inside
sqlc.arg
, like:It is throwing an invalid error synthax, because
limit
, andoffset
are exclusive and reserved to database syntax (in my case POSTGRES).Proposal
Either parse a sqlc.arg argument as a String synthax, and treat arguments wrapped with String notation as a literal, OR make parameter args unreserved.
Not sure is this a simple task, since you would probably have to "clean up" arguments, then parse/verify the query validity, and then reinject the args, in order for it to work. Not sure how internals parse it.
If its too much hassle just close it, would be nice tho if i could have nice intention in params to know what the param is about. But not a big deal really.
What database engines need to be changed?
This is not exclusive to Postgres, probably every SQL based distro
What programming language backends need to be changed?
Golang
The text was updated successfully, but these errors were encountered: