Closed GoogleCodeExporter closed 9 years ago
I think other projects in openstack are not using == True/False anymore (I
think there is actually a hacking rule for this now), they should be checking
against sqlalchemy.true() and false() (same with null() for == None).
Original comment by mattrie...@gmail.com
on 25 Sep 2014 at 4:20
I tried sqlalchemy.sql.true() here rather than True and the result was the
same. There's other places where sqlalchemy.sql.expression.true() is used in
this same part (as the server_default for some columns).
Original comment by BrantKnu...@gmail.com
on 25 Sep 2014 at 10:14
Here's the code in keystone:
http://git.openstack.org/cgit/openstack/keystone/tree/keystone/catalog/backends/
sql.py?id=2fc25ff9bb2480d04acae60c24079324d4abe3b0#n276
Original comment by BrantKnu...@gmail.com
on 25 Sep 2014 at 10:15
I changed ibm_db_sa/base.py to do
class DB2Compiler(compiler.SQLCompiler):
def visit_true(self, expr, **kw):
return '1'
(copied from dialects/mssql/base.py) and then I don't get an error... so that's
one way to fix it.
Original comment by BrantKnu...@gmail.com
on 25 Sep 2014 at 10:24
Hi Brant,
Your suggested fix is already in the git branch, on may 18, 2014 this fix has been committed to git with https://code.google.com/p/ibm-db/source/detail?r=0f1adccd488f16ba43c0611e1690834651c34e5e&repo=ibm-db-sa . And this will get included in ibm_db_sa new release.
Original comment by rahul.pr...@in.ibm.com
on 26 Sep 2014 at 9:00
Fix has released with ibm_db_sa-0.3.2
Original comment by rahul.pr...@in.ibm.com
on 5 Nov 2014 at 6:30
Original issue reported on code.google.com by
BrantKnu...@gmail.com
on 25 Sep 2014 at 4:02