Skip to content

Commit 08f551a

Browse files
author
Jesse Whitehouse
committed
Set DBAPI paramstyle to match what DBR supports
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent c6fea52 commit 08f551a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/databricks/sql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# PEP 249 module globals
66
apilevel = "2.0"
77
threadsafety = 1 # Threads may share the module, but not connections.
8-
paramstyle = "pyformat" # Python extended format codes, e.g. ...WHERE name=%(name)s
8+
paramstyle = "named" # Python extended format codes, e.g. ...WHERE name=%(name)s
99

1010

1111
class DBAPITypeObject(object):

src/databricks/sqlalchemy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class DatabricksDialect(default.DefaultDialect):
8282
supports_native_decimal: bool = True
8383
supports_sane_rowcount: bool = False
8484
non_native_boolean_check_constraint: bool = False
85-
default_paramstyle: str = "qmark"
85+
paramstyle: str = "named"
8686

8787
@classmethod
8888
def dbapi(cls):

0 commit comments

Comments
 (0)