summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-05-22 20:12:42 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-05-22 20:12:42 +0000
commit16fcbd3be2fc702bc022ff848b6e0f400d60f2f6 (patch)
treeabe666862c1125132a2701f99c3cbf101a66d5a8 /lib
parent88ae6a6cdd9f37d65ea212736f1229bb62d677a9 (diff)
parent29534cf13939c7f7fe59399f12d50df2fcab7a38 (diff)
downloadsqlalchemy-16fcbd3be2fc702bc022ff848b6e0f400d60f2f6.tar.gz
Merge "Don't emit pyodbc "no driver" warning for empty URL"
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/connectors/pyodbc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/connectors/pyodbc.py b/lib/sqlalchemy/connectors/pyodbc.py
index cd79a3ada..df1b2afdb 100644
--- a/lib/sqlalchemy/connectors/pyodbc.py
+++ b/lib/sqlalchemy/connectors/pyodbc.py
@@ -75,7 +75,8 @@ class PyODBCConnector(Connector):
connectors = []
driver = keys.pop("driver", self.pyodbc_driver_name)
- if driver is None:
+ if driver is None and keys:
+ # note if keys is empty, this is a totally blank URL
util.warn(
"No driver name specified; "
"this is expected by PyODBC when using "