8000 Disalbe MULTI_STATEMENT client flag by default. · ammogcoder/PyMySQL@c0aa317 · GitHub
[go: up one dir, main page]

Skip to content

Commit c0aa317

Browse files
committed
Disalbe MULTI_STATEMENT client flag by default.
It is disabled by default on MySQL Connector/C. Fixes PyMySQL#590
1 parent 4ff1bbc commit c0aa317

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Release date: 2017-12-20
99
When you need PyMySQL 0.7 behavior, you have to pass ``binary_prefix=True``.
1010
(#549)
1111

12+
* **BACKWARD INCOMPATIBLE** MULTI_STATEMENT client flag is not set by
13+
default while it was set by default on PyMySQL 0.7. You need to
14+
pass ``client_flag=CLIENT.MULTI_STATEMENT`` explicitly when you
15+
want to use multi statement. (#590)
16+
1217
* Fixed AuthSwitch packet handling.
1318

1419
* Raise OperationalError for MariaDB's constraint error. (#607)

pymysql/constants/CLIENT.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
PLUGIN_AUTH_LENENC_CLIENT_DATA = 1 << 21
2222
CAPABILITIES = (
2323
LONG_PASSWORD | LONG_FLAG | PROTOCOL_41 | TRANSACTIONS
24-
| SECURE_CONNECTION | MULTI_STATEMENTS | MULTI_RESULTS
24+
| SECURE_CONNECTION | MULTI_RESULTS
2525
| PLUGIN_AUTH | PLUGIN_AUTH_LENENC_CLIENT_DATA)
2626

2727
# Not done yet

0 commit comments

Comments
 (0)
0