diff --git a/lib/sqlalchemy_ingres/pyodbc.py b/lib/sqlalchemy_ingres/pyodbc.py index acd6503..629c20b 100644 --- a/lib/sqlalchemy_ingres/pyodbc.py +++ b/lib/sqlalchemy_ingres/pyodbc.py @@ -53,7 +53,9 @@ def create_connect_args(self, url): conn_list = [] conn_list.append('Driver={' + driver_name + '}') # FIXME using concat for now - conn_list.append('Database=' + url.database) + if url.database: + # database may not be needed for dialect operations without a database connnection + conn_list.append('Database=' + url.database) if not url.host: conn_list.append('Server=(local)') else: