canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
16 stars 8 forks source link

Selecting columns with keywords fails because insufficient quoting rules. #155

Open SimonRichardson opened 4 days ago

SimonRichardson commented 4 days ago

If you have a column called index, as index is a keyword, attempting to select based on that will fail because there are insufficient quoting rules for the column.

The work around is to alias the query with a view, or to list out each field and use AS in the list. Neither of which are ideal.