This project is archived and is in readonly mode.
has_many :through + scope + empty? fails in 2.3.2 (but not 2.3.0)
-
Henrik Nyh
Probably related:
p = Post.last t = Tag.last p.tags << tgives
ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) AS count_posts_all FROM `posts` INNER JOIN `taggings` ON `posts`.id = `taggin' at line 1: SELECT count(`posts`.*) AS count_posts_all FROM `posts` INNER JOIN `taggings` ON `posts`.id = `taggings`.post_id WHERE (((posts.published_at IS NOT NULL) AND ((`taggings`.tag_id = 834120776))) AND ((`taggings`.tag_id = 834120776)))Where the invalid query is
SELECT count(`posts`.*) AS count_posts_all FROM `posts` INNER JOIN `taggings` ON `posts`.id = `taggings`.post_id WHERE (((posts.published_at IS NOT NULL) AND ((`taggings`.tag_id = 834120776))) AND ((`taggings`.tag_id = 834120776))) -
Steven Soroka
I'm having the exact same problem. :/
-
Steven Soroka
- State changed from new to resolved
This bug was introduced by commit 6543426... Ensure calculations respect scoped :select [#1334 state:resolved]
-
Steven Soroka
- State changed from resolved to new
uh. that was not supposed to change the state. wonder if this will change it back: [#2310 state:new]
-
Steven Soroka
this is the same problem referenced in #2189
-
Ryan Bigg
- State changed from new to duplicate