Add drop_table query.

Syntax verified against MySQL, PostgreSQL and SQLite docs
This commit is contained in:
Carl Gherardi 2008-10-07 14:47:24 +08:00
parent 83fa3901fe
commit e6fa946835

View File

@ -36,6 +36,13 @@ class FpdbSQLQueries:
# elif(self.dbname == 'PostgreSQL'):
# elif(self.dbname == 'SQLite'):
##################################################################
# Drop Tables - MySQL, PostgreSQL and SQLite all share same syntax
##################################################################
if(self.dbname == 'MySQL InnoDB') or (self.dbname == 'PostgreSQL') or (self.dbname == 'SQLite'):
self.query['drop_table'] = """DROP TABLE IF EXISTS """
if __name__== "__main__":
from optparse import OptionParser