Skip to content

Commit 5d8b055

Browse files
authored
fix: don't use a list for empty arguments (#750)
1 parent 77e7d92 commit 5d8b055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/spanner_dbapi/parse_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def sql_pyformat_args_to_spanner(sql, params):
233233
arguments.
234234
"""
235235
if not params:
236-
return sanitize_literals_for_upload(sql), params
236+
return sanitize_literals_for_upload(sql), None
237237

238238
found_pyformat_placeholders = RE_PYFORMAT.findall(sql)
239239
params_is_dict = isinstance(params, dict)

0 commit comments

Comments
 (0)