Closed GoogleCodeExporter closed 9 years ago
Original comment by rahul.pr...@in.ibm.com
on 12 Apr 2012 at 6:09
visit_typeclause() is no more override in ibm_db_sa-0.3.0.
Original comment by rahul.pr...@in.ibm.com
on 4 Mar 2013 at 5:30
In ibm_db_sa-0.3.0, the same code was just migrated from visit_typeclause() to
visit_cast():
def visit_cast(self, cast, **kw):
type_ = cast.typeclause.type
# TODO: verify that CAST shouldn't be called with
# other types, I was able to CAST against VARCHAR
# for example
if isinstance(type_, (
sa_types.DateTime, sa_types.Date, sa_types.Time,
sa_types.DECIMAL)):
return super(DB2Compiler, self).visit_cast(cast, **kw)
else:
return self.process(cast.clause)
So, casting to varchar still doesn't work. I will send a pull request to the
github repo instead.
Original comment by sok...@gmail.com
on 7 Jul 2013 at 7:43
Original issue reported on code.google.com by
sok...@gmail.com
on 6 Apr 2012 at 3:12