We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d139c commit 3ebd77eCopy full SHA for 3ebd77e
MySQLdb/connections.py
@@ -173,19 +173,10 @@ class object, used to create cursors (keyword only)
173
self._binary_prefix = kwargs2.pop("binary_prefix", False)
174
175
client_flag = kwargs.get("client_flag", 0)
176
-
177
- client_version = tuple(
178
- [numeric_part(n) for n in _mysql.get_client_info().split(".")[:2]]
179
- )
180
+ client_flag |= CLIENT.MULTI_RESULTS
181
multi_statements = kwargs2.pop("multi_statements", True)
182
if multi_statements:
183
- if client_version >= (4, 1):
184
- client_flag |= CLIENT.MULTI_STATEMENTS
185
186
- if client_version >= (5, 0):
187
- client_flag |= CLIENT.MULTI_RESULTS
188
+ client_flag |= CLIENT.MULTI_STATEMENTS
189
kwargs2["client_flag"] = client_flag
190
191
# PEP-249 requires autocommit to be initially off
0 commit comments