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
This should be fixed to work as you'd expect. I think Postgres.js should simply quote everything in a case like this to remove any ambiguity around reserved keywords and casing.
The following breaks because
order
is a reserved POSTGRES keyword.This problem is similar to #21 in that the column
order
needs quotes to work.Writing this SQL raw, should look something like this:
(Notice the quotes around
"order"
.Instead, this library generates the following:
Which throws a SQL syntax error.
I can't figure out a workaround other than to use
sql.unsafe
, which I'm forced to use to move forward, but I don't want that permanently. Any ideas?The text was updated successfully, but these errors were encountered: