]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix test failures
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Jun 2014 22:11:04 +0000 (18:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Jun 2014 22:11:04 +0000 (18:11 -0400)
test/dialect/mysql/test_compiler.py
test/sql/test_constraints.py

index 3c2782994dbe1a696538257f5f8787d83a45f4bb..e8171fad5ee84451cbdee501e8cf004c7cf13d33 100644 (file)
@@ -117,7 +117,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
             PrimaryKeyConstraint('data'))
 
         self.assert_compile(schema.CreateTable(tbl),
-            "CREATE TABLE testtbl (data VARCHAR(255), PRIMARY KEY (data))")
+            "CREATE TABLE testtbl (data VARCHAR(255) NOT NULL, PRIMARY KEY (data))")
 
     def test_create_pk_with_using(self):
         m = MetaData()
@@ -125,7 +125,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
             PrimaryKeyConstraint('data', mysql_using='btree'))
 
         self.assert_compile(schema.CreateTable(tbl),
-            "CREATE TABLE testtbl (data VARCHAR(255), "
+            "CREATE TABLE testtbl (data VARCHAR(255) NOT NULL, "
             "PRIMARY KEY (data) USING btree)")
 
     def test_create_index_expr(self):
index 8dd15eb0219a22d38a41d4e8c2ed2991b675ed5d..992289d3e6e60a3e526aba5779f8674315bc9b5a 100644 (file)
@@ -40,14 +40,14 @@ class ConstraintGenTest(fixtures.TestBase, AssertsExecutionResults):
             testing.db,
             lambda: metadata.create_all(checkfirst=False),
             CompiledSQL('CREATE TABLE employees ('
-                    'id INTEGER, '
-                    'soc VARCHAR(40), '
+                    'id INTEGER NOT NULL, '
+                    'soc VARCHAR(40) NOT NULL, '
                     'name VARCHAR(30), '
                     'PRIMARY KEY (id, soc)'
                     ')'
             ),
             CompiledSQL('CREATE TABLE elements ('
-                    'id INTEGER, '
+                    'id INTEGER NOT NULL, '
                     'stuff VARCHAR(30), '
                     'emp_id INTEGER, '
                     'emp_soc VARCHAR(40), '