Exemplo n.º 1
0
 def test_compare_get_table_names_for_sql_and_odbc(self, schema,
                                                   engine_name):
     with self.engine_map[engine_name].begin() as c:
         if schema is None:
             c.execute("OPEN SCHEMA %s" % self.schema)
         dialect = EXADialect()
         table_names_fallback = dialect.get_table_names(
             connection=c, schema=schema, use_sql_fallback=True)
         table_names_odbc = dialect.get_table_names(connection=c,
                                                    schema=schema)
         assert table_names_fallback == table_names_odbc
Exemplo n.º 2
0
 def test_get_table_names(self, use_sql_fallback, engine_name):
     with self.engine_map[engine_name].begin() as c:
         dialect = EXADialect()
         table_names = dialect.get_table_names(
             connection=c,
             schema=self.schema,
             use_sql_fallback=use_sql_fallback)
         assert "t" in table_names and "s" in table_names
Exemplo n.º 3
0
 def with_fallback(session2, schema, table):
     dialect = EXADialect()
     dialect.get_table_names(session2,
                             schema=schema,
                             use_sql_fallback=True)