Created
August 9, 2010 19:13
-
-
Save noahhendrix/515931 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contact.limit(5).search({ :deleted_at_is_blank => true }) | |
ActiveRecord::StatementInvalid: PGError: ERROR: invalid input syntax for type timestamp: "" | |
: SELECT "contacts".* FROM "contacts" WHERE (("contacts"."deleted_at" IS NULL OR "contacts"."deleted_at" = '')) LIMIT 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contact.limit(5).where(:deleted_at => nil).to_sql | |
=> "SELECT \"contacts\".* FROM \"contacts\" WHERE (\"contacts\".\"deleted_at\" IS NULL) LIMIT 5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment