John Duu wrote:
[...]
> Not too familiar with raw sql,
Then get familiar with it! You can't use ActiveRecord effectively
without knowing SQL. It's an abstraction layer, not a crutch. You need
to know what's being abstracted
> so don't know if WHERE (defects.org IN
> ('NULL')) is equivalent to org IS NULL or if this syntax is a JavaDB
> specific.
It is not equivalent at all. See the apostrophes around 'NULL'? That
means it's the literal string NULL, not the SQL null value.
If you knew SQL, this would be trivially self-evident. Please learn
SQL.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.