Fork me on GitHub
#hugsql
<
2020-06-20
>
adam18:06:40

How can I escape :i:table identifier? I have a table named user which is reserved in Postgres and it's issuing an error due to that

seancorfield18:06:29

@somedude314 According to the HugSQL docs, you can provide :quoting :ansi as part of the options passed to def-db-fns

seancorfield18:06:21

I don't know if that will solve this particular case -- I'm not a HugSQL user -- but most of the SQL libraries have quoting options to deal with this sort of thing.

adam18:06:24

It did solve the issue, thank you so much