Created
December 14, 2010 15:35
-
-
Save mattpolito/740582 to your computer and use it in GitHub Desktop.
Invalid query that changed after upgrade to Rails 3.0.3 from 3.0.1 These seems to be a rouge set of single quotes around the second INNER JOIN
This file contains 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
-- Rails 3.0.3 - No workie *Sad Face* | |
SELECT "presentations".* FROM "presentations" INNER JOIN "taggings" ON "presentations"."id" = "taggings"."taggable_id" AND "taggings"."taggable_type" = 'Presentation' INNER JOIN "tags" ON 'taggings.tag_id = tags.id AND taggings.context = ''tags''' ORDER BY created_at DESC | |
-- Rails 3.0.1 - Works fine *Hooray* | |
SELECT "presentations".* FROM "presentations" INNER JOIN "taggings" ON "presentations"."id" = "taggings"."taggable_id" AND "taggings"."taggable_type" = 'Presentation' INNER JOIN "tags" ON taggings.tag_id = tags.id AND taggings.context = 'tags' ORDER BY created_at DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment