This project is archived and is in readonly mode.
AssociationCollection.count Returns Incorrect Value
-
Michael Koziarski
Can you rebase this down into a single patch please?
-
Patrick Joyce
Rebased the patch down to a single patch.
-
Repository
- State changed from new to resolved
(from [4851ca9e13a4317342df02ae25b1929340523f7a]) Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/4851ca9e13a4317342df02ae25b192... -
Yehuda Katz (wycats)
- State changed from resolved to open
This patch doesn't work on Postgres because the test you added (test_count_with_finder_sql) doesn't work on Postgres, even in the single line version. Can we make this work?
-
Yehuda Katz (wycats)
- Milestone cleared.
-
Repository
- State changed from open to resolved
(from [80f1f863cd0f9cba89079511282de5710a2e1832]) Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"
This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a.
The tests do not pass for postgresql.
http://github.com/rails/rails/commit/80f1f863cd0f9cba89079511282de5... -
Yehuda Katz (wycats)
- State changed from resolved to open
-
Repository
- State changed from open to resolved
(from [33dc4eb9ebe7d1a577aa7edf7215b0c14352205d]) Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/33dc4eb9ebe7d1a577aa7edf7215b0... -
Repository
(from [89e4ccfae9fd2b845464336e0b6ab63ae9a18827]) Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"
This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a.
The tests do not pass for postgresql.
http://github.com/rails/rails/commit/89e4ccfae9fd2b845464336e0b6ab6... -
Patrick Joyce
i'll fix the patch to work with Postgres but it will probably have to wait until the weekend.
-
Repository
(from [45e6f19925f23c3db257c15371d8f512cca843cd]) Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]""
This reverts commit 80f1f863cd0f9cba89079511282de5710a2e1832.
The feature doesn't work on Postgres, so don't test it on Postgres.
Also, Postgres compatibility is irrelevant to the ticket/patch in question.
http://github.com/rails/rails/commit/45e6f19925f23c3db257c15371d8f5...
