Re: [Rails] column named "key"

2019-01-08 Thread Rob Zolkos
There didn't seem to be a question here but assume you want to know how to select a column with a reserved word. This issue has some examples https://github.com/rails/rails/issues/2601 Looks like using a symbol or double quoting it should work. On Mon, Jan 7, 2019 at 7:40 PM fugee ohu wrote:

[Rails] column named "key"

2019-01-07 Thread fugee ohu
I'm trying to debug spree_preferences and found that the spree_preferences database table has a field named key If I select * then key appears in headers and rows are returned but if I explicity select key I get an error which I assume is because key is a reserved name and illegal to use --