Skip to content

Commit

Permalink
Fix issue #66 - missing database name create_engine() crash (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 authored Aug 27, 2024
1 parent 6361e9f commit 6b709bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sqlalchemy_ingres/pyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6b709bb

Please sign in to comment.