File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -173,19 +173,10 @@ class object, used to create cursors (keyword only)
173
173
self ._binary_prefix = kwargs2 .pop ("binary_prefix" , False )
174
174
175
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
-
176
+ client_flag |= CLIENT .MULTI_RESULTS
181
177
multi_statements = kwargs2 .pop ("multi_statements" , True )
182
178
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
-
179
+ client_flag |= CLIENT .MULTI_STATEMENTS
189
180
kwargs2 ["client_flag" ] = client_flag
190
181
191
182
# PEP-249 requires autocommit to be initially off
You can’t perform that action at this time.
0 commit comments