- preliminary support for unicode table and column names added.
- fix for fetchmany() "size" argument being positional in most
dbapis [ticket:505]
+ - sending None as an argument to func.<something> will produce
+ an argument of NULL
- orm:
- improved/fixed custom collection classes when giving it "set"/
"sets.Set" classes or subclasses (was still looking for append()
self.type = sqltypes.to_instance(kwargs.get('type', None))
self.packagenames = kwargs.get('packagenames', None) or []
self._engine = kwargs.get('engine', None)
- ClauseList.__init__(self, parens=True, *clauses)
+ ClauseList.__init__(self, parens=True, *[c is None and _Null() or c for c in clauses])
key = property(lambda self:self.name)
# test a dotted func off the engine itself
self.runtest(func.lala.hoho(7), "lala.hoho(:hoho)")
-
+
+ # test None becomes NULL
+ self.runtest(func.my_func(1,2,None,3), "my_func(:my_func, :my_func_1, NULL, :my_func_2)")
+
def testextract(self):
"""test the EXTRACT function"""
self.runtest(select([extract("month", table3.c.otherstuff)]), "SELECT extract(month FROM thirdtable.otherstuff) FROM thirdtable")