Good evening list,
The following subtlety(?!) of the under the hood SQL magic of
ActiveRecord has, on many occasions, made me waste hours staring
blankly at SQL exceptions while wrongly blaming the ruby SQL
Anyway, let us assume that I have a Post model with some attributes
whose names are reserved keywords of my preferred database flavour (I
know, but just bare with me... It is technically allowed with proper
quoting. Only DB tables must not be named after keywords I believe).
All the following "find with conditions" will fail very nicely, thank
you. But for the non-hardcore-DBA type person the reason might be
difficult to spot, as there are tons of keywords that will cause it.