]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
well great nobody even supports PG enum.
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Oct 2009 16:50:09 +0000 (16:50 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Oct 2009 16:50:09 +0000 (16:50 +0000)
test/dialect/test_postgresql.py

index 88e0c322452444ddb7756538e3670c334c2ab632..4e9a324d449f879d8d894091186a00c92022ca6c 100644 (file)
@@ -132,7 +132,13 @@ class EnumTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL):
             postgresql.DropEnumType(e2), 
             "DROP TYPE someschema.somename"
         )
-        
+    
+    @testing.fails_on('postgresql+zxjdbc', 
+                        'zxjdbc fails on ENUM: column "XXX" is of type XXX '
+                        'but expression is of type character varying')
+    @testing.fails_on('postgresql+pg8000', 
+                        'zxjdbc fails on ENUM: column "XXX" is of type XXX '
+                        'but expression is of type text')
     def test_create_table(self):
         metadata = MetaData(testing.db)
         t1 = Table('table', metadata,
@@ -158,6 +164,12 @@ class EnumTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL):
         assert_raises(exc.ArgumentError, etype.create)
         assert_raises(exc.ArgumentError, etype.compile, dialect=postgresql.dialect())
     
+    @testing.fails_on('postgresql+zxjdbc', 
+                        'zxjdbc fails on ENUM: column "XXX" is of type XXX '
+                        'but expression is of type character varying')
+    @testing.fails_on('postgresql+pg8000', 
+                        'zxjdbc fails on ENUM: column "XXX" is of type XXX '
+                        'but expression is of type text')
     def test_unicode_labels(self):
         metadata = MetaData(testing.db)
         t1 = Table('table', metadata,