Commits

Mike Bayer committed dd40c63

- add a suite test for underscore as initial char

Comments (0)

Files changed (1)

lib/sqlalchemy/testing/suite/test_ddl.py

                 Column('data', String(50))
             )
 
+    def _underscore_fixture(self):
+        return Table('_test_table', self.metadata,
+                Column('id', Integer, primary_key=True, autoincrement=False),
+                Column('_data', String(50))
+            )
+
     def _simple_roundtrip(self, table):
         with config.db.begin() as conn:
             conn.execute(table.insert().values((1, 'some data')))
             config.db, checkfirst=False
         )
 
+    @requirements.create_table
+    @util.provide_metadata
+    def test_underscore_names(self):
+        table = self._underscore_fixture()
+        table.create(
+            config.db, checkfirst=False
+        )
+        self._simple_roundtrip(table)
 
 __all__ = ('TableDDLTest', )