From 1aafe79b4abf5c4dbcbb87bcaa1ad1e0406290ce Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 6 Jun 2010 13:21:21 +0100 Subject: [PATCH] fix name of list indexes query --- pyfpdb/SQL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 37d214ff..ad8ea025 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -55,11 +55,11 @@ class Sql: # List indexes ################################ if db_server == 'mysql': - self.query['list_tables'] = """SHOW INDEXES""" + self.query['list_indexes'] = """SHOW INDEXES""" 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': - self.query['list_tables'] = """SELECT name FROM sqlite_master + self.query['list_indexes'] = """SELECT name FROM sqlite_master WHERE type='index' ORDER BY name;"""