loop for expressions with two NULL types.
This includes SQLite, Oracle, Sybase, MS-SQL.
[ticket:1759]
+ - Fixed an error in expression typing which caused an endless
+ loop for expressions with two NULL types.
+
- ext
- the compiler extension now allows @compiles decorators
on base classes that extend to child classes, @compiles
__visit_name__ = 'null'
def _adapt_expression(self, op, othertype):
- if othertype is NullType or not operators.is_commutative(op):
+ if othertype is NULLTYPE or not operators.is_commutative(op):
return op, self
else:
return othertype._adapt_expression(op, self)
expr = column('bar', Integer) - 3
eq_(expr.type._type_affinity, Integer)
+
+ expr = bindparam('bar') + bindparam('foo')
+ eq_(expr.type, types.NULLTYPE)
def test_distinct(self):
s = select([distinct(test_table.c.avalue)])
assert distinct(test_table.c.data).type == test_table.c.data.type
assert test_table.c.data.distinct().type == test_table.c.data.type
+
class DateTest(TestBase, AssertsExecutionResults):
@classmethod