|
6 | 6 | - Tests for the public API (only tests with sqlite3)
|
7 | 7 | - `_TestSQLApi` base class
|
8 | 8 | - `TestSQLApi`: test the public API with sqlalchemy engine
|
9 |
| - - `TesySQLiteFallbackApi`: test the public API with a sqlite DBAPI connection |
| 9 | + - `TestSQLiteFallbackApi`: test the public API with a sqlite DBAPI connection |
10 | 10 | - Tests for the different SQL flavors (flavor specific type conversions)
|
11 | 11 | - Tests for the sqlalchemy mode: `_TestSQLAlchemy` is the base class with
|
12 | 12 | common methods, the different tested flavors (sqlite3, MySQL, PostgreSQL)
|
@@ -1676,13 +1676,14 @@ def test_illegal_names(self):
|
1676 | 1676 | flavor=self.flavor)
|
1677 | 1677 |
|
1678 | 1678 | for ndx, weird_name in enumerate(['test_weird_name]','test_weird_name[',
|
1679 |
| - 'test_weird_name`','test_weird_name"', 'test_weird_name\'']): |
| 1679 | + 'test_weird_name`','test_weird_name"', 'test_weird_name\'', |
| 1680 | + '_b.test_weird_name_01-30', '"_b.test_weird_name_01-30"']): |
1680 | 1681 | df.to_sql(weird_name, self.conn, flavor=self.flavor)
|
1681 | 1682 | sql.table_exists(weird_name, self.conn)
|
1682 | 1683 |
|
1683 | 1684 | df2 = DataFrame([[1, 2], [3, 4]], columns=['a', weird_name])
|
1684 | 1685 | c_tbl = 'test_weird_col_name%d'%ndx
|
1685 |
| - df.to_sql(c_tbl, self.conn, flavor=self.flavor) |
| 1686 | + df2.to_sql(c_tbl, self.conn, flavor=self.flavor) |
1686 | 1687 | sql.table_exists(c_tbl, self.conn)
|
1687 | 1688 |
|
1688 | 1689 |
|
|
0 commit comments