indexes.append(dict(name=row[1], column_names=[], unique=row[2]))
# loop thru unique indexes to get the column names.
for idx in indexes:
- c = connection.execute("%sindex_info(%s)" % (pragma, idx['name']))
+ c = connection.execute("%sindex_info(%s)" % (pragma, quote(idx['name'])))
cols = idx['column_names']
while True:
row = c.fetchone()
if args:
coltype = args[0]
- # adjust for partials
- if util.callable(coltype):
- coltype = args[0]()
-
if (isinstance(coltype, types.AbstractType) or
(isinstance(coltype, type) and
issubclass(coltype, types.AbstractType))):
m9.reflect()
self.assert_(not m9.tables)
- @testing.fails_on_everything_except('postgres', 'mysql')
+ @testing.fails_on_everything_except('postgres', 'mysql', 'sqlite')
def test_index_reflection(self):
m1 = MetaData(testing.db)
t1 = Table('party', m1,
con.execute(sa.sql.text(query))
-class ReflectionTest(TestBase):
+class ComponentReflectionTest(TestBase):
@testing.fails_on('sqlite', 'no schemas')
def test_get_schema_names(self):