Skip to content

Commit

Permalink
Merge pull request #1521 from mabel-dev/#1517
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer authored Mar 14, 2024
2 parents 82ec13d + a9035d3 commit 1292a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion opteryx/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__build__ = 362
__build__ = 365

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
7 changes: 1 addition & 6 deletions opteryx/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,7 @@ def _execute_statements(self, operation, params: Optional[Iterable] = None):
if len(statements) == 0:
raise MissingSqlStatement("No statement found")

if (
len(statements) > 1
and params is not None
and not isinstance(params, dict)
and len(params) > 0
):
if len(statements) > 1 and params is not None and not isinstance(params, dict) and params:
raise UnsupportedSyntaxError(
"Batched queries cannot be parameterized with parameter lists, use named parameters."
)
Expand Down

0 comments on commit 1292a27

Please sign in to comment.