fix name of list indexes query
This commit is contained in:
parent
b7a7af37d5
commit
1aafe79b4a
|
@ -55,11 +55,11 @@ class Sql:
|
||||||
# List indexes
|
# List indexes
|
||||||
################################
|
################################
|
||||||
if db_server == 'mysql':
|
if db_server == 'mysql':
|
||||||
self.query['list_tables'] = """SHOW INDEXES"""
|
self.query['list_indexes'] = """SHOW INDEXES"""
|
||||||
elif db_server == 'postgresql':
|
elif db_server == 'postgresql':
|
||||||
self.query['list_tables'] = """SELECT tablename, indexname FROM PG_INDEXES"""
|
self.query['list_indexes'] = """SELECT tablename, indexname FROM PG_INDEXES"""
|
||||||
elif db_server == 'sqlite':
|
elif db_server == 'sqlite':
|
||||||
self.query['list_tables'] = """SELECT name FROM sqlite_master
|
self.query['list_indexes'] = """SELECT name FROM sqlite_master
|
||||||
WHERE type='index'
|
WHERE type='index'
|
||||||
ORDER BY name;"""
|
ORDER BY name;"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user