create Database instance in import to pass into parser - will eventually replace fpdb_db

This commit is contained in:
sqlcoder
2009-06-25 23:14:32 +01:00
parent 9b4e47df9a
commit a2db28ebf2
3 changed files with 14 additions and 6 deletions
+1
View File
@@ -49,6 +49,7 @@ class Database:
self.import_options = c.get_import_parameters()
self.type = db_params['db-type']
self.backend = db_params['db-backend']
self.db_server = db_params['db-server']
# where possible avoid creating new SQL instance by using the global one passed in
if sql == None:
self.sql = SQL.Sql(type = self.type, db_server = db_params['db-server'])