Informix query.count does not work.
Issue #2162
resolved
Using the count method on an orm query will fail with informix because informix does not consider the output of count(1) as valid syntax.
Using count(*) however does work and I would imagine is probably supported by every database.
Unfortunately, I am unable to write a test case for this bug, but I have attached a diff with a fix for the offending code.
Richard Murri
Comments (5)
-
repo owner -
repo owner Our main oracle user approves so this is fine to go in. But I'd like to leave it on 0.7 since we prefer to push behavioral changes to upcoming major versions.
-
Account Deleted Sounds good. Another option is to add an parameter to the count method that lets you specify what you're counting.
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
I want to make one more pass through the oracle rumor mill regarding this. its an old DBA's tale that oracle performs better when its "select 1". I think its been disproven, however.