- engines
- Fixed building the C extensions on Python 2.4. [ticket:1781]
-
+
+- mysql
+ - func.sysdate() emits "SYSDATE()", i.e. with the ending
+ parenthesis, on MySQL. [ticket:1794]
+
- oracle
- Added a check for cx_oracle versions lower than version 5,
in which case the incompatible "output type handler" won't
def visit_utc_timestamp_func(self, fn, **kw):
return "UTC_TIMESTAMP"
+
+ def visit_sysdate_func(self, fn, **kw):
+ return "SYSDATE()"
def visit_concat_op(self, binary, **kw):
return "concat(%s, %s)" % (self.process(binary.left), self.process(binary.right))
def test_utc_timestamp(self):
self.assert_compile(func.utc_timestamp(), "UTC_TIMESTAMP")
+ def test_sysdate(self):
+ self.assert_compile(func.sysdate(), "SYSDATE()")
+
def test_cast(self):
t = sql.table('t', sql.column('col'))
m = mysql
meta.reflect(cx)
eq_(cx.dialect._connection_charset, charset)
cx.close()
-
+
+ def test_sysdate(self):
+ d = testing.db.scalar(func.sysdate())
+ assert isinstance(d, datetime.datetime)
class MatchTest(TestBase, AssertsCompiledSQL):
__only_on__ = 'mysql'