From: Mike Bayer Date: Mon, 24 Jun 2013 00:13:28 +0000 (-0400) Subject: YEAR(2) emits a warning and oursql / mysqlconnector throw an exception X-Git-Tag: rel_0_9_0b1~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11447041804dd39d05684c7809971a253c800cba;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git YEAR(2) emits a warning and oursql / mysqlconnector throw an exception on the warning so just dump it --- diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 33e2916f4f..ec6b1c1935 100644 --- a/test/dialect/test_mysql.py +++ b/test/dialect/test_mysql.py @@ -587,7 +587,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): Column('y1', mysql.MSYear), Column('y2', mysql.MSYear), Column('y3', mysql.MSYear), - Column('y4', mysql.MSYear(2)), Column('y5', mysql.MSYear(4))) for col in year_table.c: @@ -597,12 +596,11 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): autoload=True) for table in year_table, reflected: - table.insert(['1950', '50', None, 50, 1950]).execute() + table.insert(['1950', '50', None, 1950]).execute() row = table.select().execute().first() - eq_(list(row), [1950, 2050, None, 50, 1950]) + eq_(list(row), [1950, 2050, None, 1950]) table.delete().execute() self.assert_(colspec(table.c.y1).startswith('y1 YEAR')) - eq_(colspec(table.c.y4), 'y4 YEAR(2)') eq_(colspec(table.c.y5), 'y5 YEAR(4)') @testing.only_if('mysql')