mysqlclient 2.3.0__tar.gz → 2.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/HISTORY.rst +748 -727
  2. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/LICENSE +339 -339
  3. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/MANIFEST.in +7 -7
  4. {mysqlclient-2.3.0/src/mysqlclient.egg-info → mysqlclient-2.3.1}/PKG-INFO +143 -143
  5. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/README.md +111 -111
  6. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/FAQ.rst +136 -136
  7. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/MySQLdb.constants.rst +50 -50
  8. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/MySQLdb.rst +62 -62
  9. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/conf.py +251 -251
  10. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/index.rst +19 -19
  11. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/doc/user_guide.rst +774 -774
  12. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/pyproject.toml +50 -50
  13. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/setup.cfg +4 -4
  14. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/setup.py +168 -168
  15. mysqlclient-2.3.1/site.cfg +3 -0
  16. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/__init__.py +169 -169
  17. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/_exceptions.py +91 -91
  18. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/_mysql.c +3306 -3307
  19. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/connections.py +389 -382
  20. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/CLIENT.py +27 -27
  21. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/CR.py +105 -105
  22. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/ER.py +826 -826
  23. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/FIELD_TYPE.py +40 -40
  24. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/FLAG.py +23 -23
  25. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/constants/__init__.py +1 -1
  26. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/converters.py +141 -139
  27. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/cursors.py +679 -679
  28. mysqlclient-2.3.1/src/MySQLdb/release.py +3 -0
  29. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/MySQLdb/times.py +162 -162
  30. {mysqlclient-2.3.0 → mysqlclient-2.3.1/src/mysqlclient.egg-info}/PKG-INFO +143 -143
  31. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/mysqlclient.egg-info/SOURCES.txt +1 -0
  32. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/capabilities.py +316 -316
  33. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/configdb.py +25 -25
  34. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/dbapi20.py +858 -858
  35. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_MySQLdb_capabilities.py +209 -209
  36. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_MySQLdb_dbapi20.py +231 -231
  37. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_MySQLdb_nonstandard.py +147 -147
  38. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_MySQLdb_times.py +152 -152
  39. mysqlclient-2.3.1/tests/test__mysql.py +36 -0
  40. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_connection.py +153 -153
  41. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_cursor.py +801 -801
  42. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_errors.py +56 -56
  43. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/tests/test_sqlalchemy.py +151 -151
  44. mysqlclient-2.3.0/site.cfg +0 -7
  45. mysqlclient-2.3.0/src/MySQLdb/release.py +0 -3
  46. mysqlclient-2.3.0/tests/test__mysql.py +0 -8
  47. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/mysqlclient.egg-info/dependency_links.txt +0 -0
  48. {mysqlclient-2.3.0 → mysqlclient-2.3.1}/src/mysqlclient.egg-info/top_level.txt +0 -0
@@ -1,727 +1,748 @@
1
- ======================
2
- What's new in 2.3.0
3
- ======================
4
-
5
- Release: 2026-09-07
6
-
7
- * Concurrent use of the same Connection object from multiple threads now
8
- raises ``ProgrammingError`` immediately instead of causing undefined
9
- behavior.
10
- Applications should use separate connections for concurrent operations.
11
- (#781)
12
-
13
- * Add an optional ``executemany_fallback="multi"`` connection option.
14
- When enabled, ``Cursor.executemany()`` can batch eligible INSERT, REPLACE,
15
- UPDATE, and DELETE statements into multi-statement queries instead of
16
- executing them one at a time. This can significantly improve performance of
17
- operations such as SQLAlchemy bulk UPDATEs. The default remains "loop",
18
- and the existing multi-row INSERT/REPLACE optimization is unchanged. (#798)
19
-
20
- * Add ``Cursor.warning_count`` to expose the warning count for the last
21
- statement. (#780)
22
-
23
- * Make ``Cursor`` itself an iterator as specified by DB-API 2.0.
24
- ``iter(cursor) is cursor`` and ``next(cursor)`` fetches the next row. (#785)
25
-
26
- * Quote stored procedure names and user variable names in ``Cursor.callproc()``,
27
- allowing names containing reserved words or special characters. (#789)
28
-
29
- * Fix conversion of ``datetime.timedelta`` values to support microseconds and
30
- negative values correctly. (#795)
31
-
32
- * Add Windows ARM64 wheels. (#796)
33
-
34
- * Test with Python 3.15 and free-threaded Python 3.15, and update the MariaDB
35
- Connector/C used for Windows wheels to 3.4.9. (#797)
36
-
37
- * Add ``Connection.more_results()`` for checking whether additional results
38
- remain after a multi-statement query. (#798)
39
-
40
- * Deprecate accessing exception classes such as ``ProgrammingError`` and
41
- ``OperationalError`` as ``Cursor`` attributes. Access them from the
42
- ``MySQLdb`` package instead. (#782)
43
-
44
- * Deprecate the ``reconnect`` parameter of ``Connection.ping()``. Calling
45
- ``ping()`` without the parameter is unchanged. (#790)
46
-
47
-
48
- ======================
49
- What's new in 2.2.8
50
- ======================
51
-
52
- Release: 2026-02-10
53
-
54
- * Add ``local_infile_dir`` option to restrict LOAD DATA LOCAL INFILE file path. (#755)
55
- * windows wheel: Update mariadb-connector to 3.4.8 (#773)
56
- * Add Python 3.14 and drop Python 3.8, 3.9 support. (#774)
57
- * Experimental support for free threaded Python. Importing ``MySQLdb`` doesn't
58
- enable the GIL anymore. This doesn't mean mysqlclient is thread safe.
59
- You must not use same connection object from multiple threads concurrently. (#775)
60
-
61
-
62
- ======================
63
- What's new in 2.2.7
64
- ======================
65
-
66
- Release: 2025-01-10
67
-
68
- * Add ``user``, ``host``, ``database``, and ``db`` attributes to ``Connection``.
69
- opentelemetry-instrumentation-(dbapi|mysqlclient) use them. (#753)
70
-
71
- ======================
72
- What's new in 2.2.6
73
- ======================
74
-
75
- Release: 2024-11-12
76
-
77
- * MariaDB Connector/C 3.4 and MairaDB 11.4 enabled SSL and CA verification by default.
78
- It affected 2.2.5 windows wheel. This release disables SSL and CA verification by default. (#731)
79
-
80
- * Add ``server_public_key_path`` option. It is needed to connect MySQL server with
81
- ``sha256_password`` or ``caching_sha2_password`` authentication plugin without
82
- secure connection. (#744)
83
-
84
- ======================
85
- What's new in 2.2.5
86
- ======================
87
-
88
- Release: 2024-10-20
89
-
90
- * (Windows wheel) Update MariaDB Connector/C to 3.4.1. #726
91
- * (Windows wheel) Build wheels for Python 3.13. #726
92
-
93
- ======================
94
- What's new in 2.2.4
95
- ======================
96
-
97
- Release: 2024-02-09
98
-
99
- * Support ``ssl=True`` in ``connect()``. (#700)
100
- This makes better compatibility with PyMySQL and mysqlclient==2.2.1
101
- with libmariadb. See #698 for detail.
102
-
103
-
104
- ======================
105
- What's new in 2.2.3
106
- ======================
107
-
108
- Release: 2024-02-04
109
-
110
- * Fix ``Connection.kill()`` method that broken in 2.2.2. (#689)
111
-
112
-
113
- ======================
114
- What's new in 2.2.2
115
- ======================
116
-
117
- Release: 2024-02-04
118
-
119
- * Support building with MySQL 8.3 (#688).
120
- * Deprecate ``db.shutdown()`` and ``db.kill()`` methods in docstring.
121
- This is because ``mysql_shutdown()`` and ``mysql_kill()`` were removed in MySQL 8.3.
122
- They will emit DeprecationWarning in the future but not for now.
123
-
124
-
125
- ======================
126
- What's new in 2.2.1
127
- ======================
128
-
129
- Release: 2023-12-13
130
-
131
- * ``Connection.ping()`` avoid using ``MYSQL_OPT_RECONNECT`` option until
132
- ``reconnect=True`` is specified. MySQL 8.0.33 start showing warning
133
- when the option is used. (#664)
134
- * Windows: Update MariaDB Connector/C to 3.3.8. (#665)
135
- * Windows: Build wheels for Python 3.12 (#644)
136
-
137
-
138
- ======================
139
- What's new in 2.2.0
140
- ======================
141
-
142
- Release: 2023-06-22
143
-
144
- * Use ``pkg-config`` instead of ``mysql_config`` (#586)
145
- * Raise ProgrammingError on -inf (#557)
146
- * Raise IntegrityError for ER_BAD_NULL. (#579)
147
- * Windows: Use MariaDB Connector/C 3.3.4 (#585)
148
- * Use pkg-config instead of mysql_config (#586)
149
- * Add collation option (#564)
150
- * Drop Python 3.7 support (#593)
151
- * Use pyproject.toml for build (#598)
152
- * Add Cursor.mogrify (#477)
153
- * Partial support of ssl_mode option with mariadbclient (#475)
154
- * Discard remaining results without creating Python objects (#601)
155
- * Fix executemany with binary prefix (#605)
156
-
157
- ======================
158
- What's new in 2.1.1
159
- ======================
160
-
161
- Release: 2022-06-22
162
-
163
- * Fix qualname of exception classes. (#522)
164
- * Fix range check in ``MySQLdb._mysql.result.fetch_row()``. Invalid ``how`` argument caused SEGV. (#538)
165
- * Fix docstring of ``_mysql.connect``. (#540)
166
- * Windows: Binary wheels are updated. (#541)
167
- * Use MariaDB Connector/C 3.3.1.
168
- * Use cibuildwheel to build wheels.
169
- * Python 3.8-3.11
170
-
171
- ======================
172
- What's new in 2.1.0
173
- ======================
174
-
175
- Release: 2021-11-17
176
-
177
- * Add ``multistatement=True`` option. You can disable multi statement. (#500).
178
- * Remove unnecessary bytes encoder which is remained for Django 1.11
179
- compatibility (#490).
180
- * Deprecate ``passwd`` and ``db`` keyword. Use ``password`` and ``database``
181
- instead. (#488).
182
- * Windows: Binary wheels are built with MariaDB Connector/C 3.2.4. (#508)
183
- * ``set_character_set()`` sends ``SET NAMES`` query always. This means
184
- all new connections send it too. This solves compatibility issues
185
- when server and client library are different version. (#509)
186
- * Remove ``escape()`` and ``escape_string()`` from ``MySQLdb`` package.
187
- (#511)
188
- * Add Python 3.10 support and drop Python 3.5 support.
189
-
190
- ======================
191
- What's new in 2.0.3
192
- ======================
193
-
194
- Release: 2021-01-01
195
-
196
- * Add ``-std=c99`` option to cflags by default for ancient compilers that doesn't
197
- accept C99 by default.
198
- * You can customize cflags and ldflags by setting ``MYSQLCLIENT_CFLAGS`` and
199
- ``MYSQLCLIENT_LDFLAGS``. It overrides ``mysql_config``.
200
-
201
- ======================
202
- What's new in 2.0.2
203
- ======================
204
-
205
- Release: 2020-12-10
206
-
207
- * Windows: Update MariaDB Connector/C to 3.1.11.
208
- * Optimize fetching many rows with DictCursor.
209
-
210
- ======================
211
- What's new in 2.0.1
212
- ======================
213
-
214
- Release: 2020-07-03
215
-
216
- * Fixed multithread safety issue in fetching row.
217
- * Removed obsolete members from Cursor. (e.g. `messages`, `_warnings`, `_last_executed`)
218
-
219
- ======================
220
- What's new in 2.0.0
221
- ======================
222
-
223
- Release: 2020-07-02
224
-
225
- * Dropped Python 2 support
226
- * Dropped Django 1.11 support
227
- * Add context manager interface to Connection which closes the connection on ``__exit__``.
228
- * Add ``ssl_mode`` option.
229
-
230
-
231
- ======================
232
- What's new in 1.4.6
233
- ======================
234
-
235
- Release: 2019-11-21
236
-
237
- * The ``cp1252`` encoding is used when charset is "latin1". (#390)
238
-
239
- ======================
240
- What's new in 1.4.5
241
- ======================
242
-
243
- Release: 2019-11-06
244
-
245
- * The ``auth_plugin`` option is added. (#389)
246
-
247
-
248
- ======================
249
- What's new in 1.4.4
250
- ======================
251
-
252
- Release: 2019-08-12
253
-
254
- * ``charset`` option is passed to ``mysql_options(mysql, MYSQL_SET_CHARSET_NAME, charset)``
255
- before ``mysql_real_connect`` is called.
256
- This avoid extra ``SET NAMES <charset>`` query when creating connection.
257
-
258
-
259
- ======================
260
- What's new in 1.4.3
261
- ======================
262
-
263
- Release: 2019-08-09
264
-
265
- * ``--static`` build supports ``libmariadbclient.a``
266
- * Try ``mariadb_config`` when ``mysql_config`` is not found
267
- * Fixed warning happened in Python 3.8 (#359)
268
- * Fixed ``from MySQLdb import *``, while I don't recommend it. (#369)
269
- * Fixed SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
270
- no connection is created. (#367)
271
- * Fixed many circular references are created in ``Cursor.executemany()``. (#375)
272
-
273
-
274
- ======================
275
- What's new in 1.4.2
276
- ======================
277
-
278
- Release: 2019-02-08
279
-
280
- * Fix Django 1.11 compatibility. (#327)
281
- mysqlclient 1.5 will not support Django 1.11. It is not because
282
- mysqlclient will break backward compatibility, but Django used
283
- unsupported APIs and Django 1.11 don't fix bugs including
284
- compatibility issues.
285
-
286
- ======================
287
- What's new in 1.4.1
288
- ======================
289
-
290
- Release: 2019-01-19
291
-
292
- * Fix dict parameter support (#323, regression of 1.4.0)
293
-
294
- ======================
295
- What's new in 1.4.0
296
- ======================
297
-
298
- Release: 2019-01-18
299
-
300
- * Dropped Python 3.4 support.
301
-
302
- * Removed ``threadsafe`` and ``embedded`` build options.
303
-
304
- * Remove some deprecated cursor classes and methods.
305
-
306
- * ``_mysql`` and ``_mysql_exceptions`` modules are moved under
307
- ``MySQLdb`` package. (#293)
308
-
309
- * Remove ``errorhandler`` from Connection and Cursor classes.
310
-
311
- * Remove context manager API from Connection. It was for transaction.
312
- New context manager API for closing connection will be added in future version.
313
-
314
- * Remove ``waiter`` option from Connection.
315
-
316
- * Remove ``escape_sequence``, and ``escape_dict`` methods from Connection class.
317
-
318
- * Remove automatic MySQL warning checking.
319
-
320
- * Drop support for MySQL Connector/C with MySQL<5.1.12.
321
-
322
- * Remove ``_mysql.NULL`` constant.
323
-
324
- * Remove ``_mysql.thread_safe()`` function.
325
-
326
- * Support non-ASCII field name with non-UTF-8 connection encoding. (#210)
327
-
328
- * Optimize decoding speed of string and integer types.
329
-
330
- * Remove ``MySQLdb.constants.REFRESH`` module.
331
-
332
- * Remove support for old datetime format for MySQL < 4.1.
333
-
334
- * Fix wrong errno is raised when ``mysql_real_connect`` is failed. (#316)
335
-
336
-
337
- ======================
338
- What's new in 1.3.14
339
- ======================
340
-
341
- Release: 2018-12-04
342
-
343
- * Support static linking of MariaDB Connector/C (#265)
344
-
345
- * Better converter for Decimal and Float (#267, #268, #273, #286)
346
-
347
- * Add ``Connection._get_native_connection`` for XTA project (#269)
348
-
349
- * Fix SEGV on MariaDB Connector/C when some methods of ``Connection``
350
- objects are called after ``Connection.close()`` is called. (#270, #272, #276)
351
- See https://jira.mariadb.org/browse/CONC-289
352
-
353
- * Fix ``Connection.client_flag`` (#266)
354
-
355
- * Fix SSCursor may raise same exception twice (#282)
356
-
357
- * This removed ``Cursor._last_executed`` which was duplicate of ``Cursor._executed``.
358
- Both members are private. So this type of changes are not documented in changelog
359
- generally. But Django used the private member for ``last_executed_query`` implementation.
360
- If you use the method the method directly or indirectly, this version will break
361
- your application. See https://code.djangoproject.com/ticket/30013
362
-
363
- * ``waiter`` option is now deprecated. (#285)
364
-
365
- * Fixed SSL support is not detected when built with MySQL < 5.1 (#291)
366
-
367
-
368
- ======================
369
- What's new in 1.3.13
370
- ======================
371
-
372
- Support build with MySQL 8
373
-
374
- Fix decoding tiny/medium/long blobs (#215)
375
-
376
- Remove broken row_seek() and row_tell() APIs (#220)
377
-
378
- Reduce callproc roundtrip time (#223)
379
-
380
-
381
- ======================
382
- What's new in 1.3.12
383
- ======================
384
-
385
- Fix tuple argument again (#201)
386
-
387
- InterfaceError is raised when Connection.query() is called for closed connection (#202)
388
-
389
- ======================
390
- What's new in 1.3.11
391
- ======================
392
-
393
- Support MariaDB 10.2 client library (#197, #177, #200)
394
-
395
- Add NEWDECIMAL to the NUMBER DBAPISet (#167)
396
-
397
- Allow bulk insert which no space around `VALUES` (#179)
398
-
399
- Fix leak of `connection->converter`. (#182)
400
-
401
- Support error `numbers > CR_MAX_ERROR` (#188)
402
-
403
- Fix tuple argument support (#145)
404
-
405
-
406
- ======================
407
- What's new in 1.3.10
408
- ======================
409
-
410
- Added `binary_prefix` option (disabled by default) to support
411
- `_binary` prefix again. (#134)
412
-
413
- Fix SEGV of `_mysql.result()` when argument's type is unexpected. (#138)
414
-
415
- Deprecate context interface of Connection object. (#149)
416
-
417
- Don't use workaround of `bytes.decode('ascii', 'surrogateescape')` on Python 3.6+. (#150)
418
-
419
-
420
- =====================
421
- What's new in 1.3.9
422
- =====================
423
-
424
- Revert adding `_binary` prefix for bytes/bytearray parameter. It broke backward compatibility.
425
-
426
- Fix Windows compile error on MSVC.
427
-
428
-
429
- =====================
430
- What's new in 1.3.8
431
- =====================
432
-
433
- Update error constants (#113)
434
-
435
- Use `_binary` prefix for bytes/bytearray parameters (#106)
436
-
437
- Use mysql_real_escape_string_quote() if exists (#109)
438
-
439
- Better Warning propagation (#101)
440
-
441
- Fix conversion error when mysql_affected_rows returns -1
442
-
443
- Fix Cursor.callproc may raise TypeError (#90, #91)
444
-
445
- connect() supports the 'database' and 'password' keyword arguments.
446
-
447
- Fix accessing dangling pointer when using ssl (#78)
448
-
449
- Accept %% in Cursor.executemany (#83)
450
-
451
- Fix warning that caused TypeError on Python 3 (#68)
452
-
453
- =====================
454
- What's new in 1.3.7
455
- =====================
456
-
457
- Support link args other than '-L' and '-l' from mysql_config.
458
-
459
- Missing value for column without default value cause IntegrityError. (#33)
460
-
461
- Support BIT type. (#38)
462
-
463
- More tests for date and time columns. (#41)
464
-
465
- Fix calling .execute() method for closed cursor cause TypeError. (#37)
466
-
467
- Improve performance to parse date. (#43)
468
-
469
- Support geometry types (#49)
470
-
471
- Fix warning while multi statement cause ProgrammingError. (#48)
472
-
473
-
474
- =====================
475
- What's new in 1.3.6
476
- =====================
477
-
478
- Fix escape_string() doesn't work.
479
-
480
- Remove `Cursor.__del__` to fix uncollectable circular reference on Python 3.3.
481
-
482
- Add context manager support to `Cursor`. It automatically closes cursor on `__exit__`.
483
-
484
- .. code-block::
485
-
486
- with conn.cursor() as cur:
487
- cur.execute("SELECT 1+1")
488
- print(cur.fetchone())
489
- # cur is now closed
490
-
491
-
492
- =====================
493
- What's new in 1.3.5
494
- =====================
495
-
496
- Fix TINYBLOB, MEDIUMBLOB and LONGBLOB are treated as string and decoded
497
- to unicode or cause UnicodeError.
498
-
499
- Fix aware datetime is formatted with timezone offset (e.g. "+0900").
500
-
501
-
502
- =====================
503
- What's new in 1.3.4
504
- =====================
505
-
506
- * Remove compiler warnings.
507
- * Fix compile error when using libmariadbclient.
508
- * Fix GIL deadlock while dealloc.
509
-
510
- =====================
511
- What's new in 1.3.3
512
- =====================
513
-
514
- * Fix exception reraising doesn't work.
515
-
516
- =====================
517
- What's new in 1.3.2
518
- =====================
519
-
520
- * Add send_query() and read_query_result() method to low level connection.
521
- * Add waiter option.
522
-
523
-
524
- =====================
525
- What's new in 1.3.1
526
- =====================
527
-
528
- This is a first fork of MySQL-python.
529
- Now named "mysqlclient"
530
-
531
- * Support Python 3
532
- * Add autocommit option
533
- * Support microsecond in datetime field.
534
-
535
-
536
- =====================
537
- What's new in 1.2.4
538
- =====================
539
-
540
- final
541
- =====
542
-
543
- No changes.
544
-
545
-
546
- rc 1
547
- ====
548
-
549
- Fixed a dangling reference to the old types module.
550
-
551
-
552
- beta 5
553
- ======
554
-
555
- Another internal fix for handling remapped character sets.
556
-
557
- `_mysql.c` was broken for the case where read_timeout was *not* available. (Issue #6)
558
-
559
- Documentation was converted to sphinx but there is a lot of cleanup left to do.
560
-
561
-
562
- beta 4
563
- ======
564
-
565
- Added support for the MySQL read_timeout option. Contributed by
566
- Jean Schurger (jean@schurger.org).
567
-
568
- Added a workaround so that the MySQL character set utf8mb4 works with Python; utf8 is substituted
569
- on the Python side.
570
-
571
-
572
- beta 3
573
- ======
574
-
575
- Unified test database configuration, and set up CI testing with Travis.
576
-
577
- Applied several patches from André Malo (ndparker@users.sf.net) which fix some issues
578
- with exception handling and reference counting and TEXT/BLOB conversion.
579
-
580
-
581
- beta 2
582
- ======
583
-
584
- Reverted an accidental change in the exception format. (issue #1)
585
-
586
- Reverted some raise statements so that they will continue to work with Python < 2.6
587
-
588
-
589
- beta 1
590
- ======
591
-
592
- A lot of work has been done towards Python 3 compatibility, and avoiding warnings with Python 2.7.
593
- This includes import changes, converting dict.has_kay(k) to k in dict, updating some test suite methods, etc.
594
-
595
- Due to the difficulties of supporting Python 3 and Python < 2.7, 1.2.4 will support Python 2.4 though 2.7.
596
- 1.3.0 will support Python 3 and Python 2.7 and 2.6.
597
-
598
- MySQLdb-2.0 is instead going to become moist-1.0. See https://github.com/farcepest/moist
599
-
600
- The Windows build has been simplified, and I plan to correct pre-built i386 packages built
601
- against the python.org Python-2.7 package and MySQL Connector/C-6.0. Contact me if you
602
- need ia64 packages.
603
-
604
- The connection's cursorclass (if not default) was being lost on reconnect.
605
-
606
- Newer versions of MySQL don't use OpenSSL and therefore don't have HAVE_SSL defined, but they do have
607
- a different SSL library. Fixed this so SSL support would be enabled in this case.
608
-
609
- The regex that looked for SQL INSERT statement and VALUES in cursor.executemany() was made case-insensitive
610
- again.
611
-
612
-
613
- =====================
614
- What's new in 1.2.3
615
- =====================
616
-
617
- ez_setup.py has been update to include various fixes that affect the build.
618
-
619
- Better Python version and dependency detection as well as eliminate exception
620
- warnings under Python 2.6.
621
-
622
- Eliminated memory leaks related to Unicode and failed connections.
623
-
624
- Corrected connection .escape() functionality.
625
-
626
- Miscellaneous cleanups and and expanded testing suite to ensure ongoing release
627
- quality.
628
-
629
- =====================
630
- What's new in 1.2.2
631
- =====================
632
-
633
- The build system has been completely redone and should now build
634
- on Windows without any patching; uses setuptools.
635
-
636
- Added compatibility for Python 2.5, including support for with statement.
637
-
638
- connection.ping() now takes an optional boolean argument which can
639
- enable (or disable) automatic reconnection.
640
-
641
- Support returning SET columns as Python sets was removed due to an
642
- API bug in MySQL; corresponding test removed.
643
-
644
- Added a test for single-character CHAR columns.
645
-
646
- BLOB columns are now returned as Python strings instead of byte arrays.
647
-
648
- BINARY character columns are always returned as Python strings, and not
649
- unicode.
650
-
651
- Fixed a bug introduced in 1.2.1 where the new SHOW WARNINGS support broke
652
- SSCursor.
653
-
654
- Only encode the query (convert to a string) when it is a unicode instance;
655
- re-encoding encoded strings would break things.
656
-
657
- Make a deep copy of conv when connecting, since it can be modified.
658
-
659
- Added support for new VARCHAR and BIT column types.
660
-
661
- DBAPISet objects were broken, but nobody noticed.
662
-
663
-
664
- ========================
665
- What's new in 1.2.1_p2
666
- ========================
667
-
668
- There are some minor build fixes which probably only affect MySQL
669
- older than 4.0.
670
-
671
- If you had MySQL older than 4.1, the new charset and sql_mode
672
- parameters didn't work right. In fact, it was impossible to create
673
- a connection due to the charset problem.
674
-
675
- If you are using MySQL-4.1 or newer, there is no practical difference
676
- between 1.2.1 and 1.2.1_p2, and you don't need to upgrade.
677
-
678
-
679
- =====================
680
- What's new in 1.2.1
681
- =====================
682
-
683
- Switched to Subversion. Was going to do this for 1.3, but a
684
- SourceForge CVS outage has forced the issue.
685
-
686
- Mapped a lot of new 4.1 and 5.0 error codes to Python exceptions
687
-
688
- Added an API call for mysql_set_character_set(charset) (MySQL > 5.0.7)
689
-
690
- Added an API call for mysql_get_character_set_info() (MySQL > 5.0.10)
691
-
692
- Revamped the build system. Edit site.cfg if necessary (probably not
693
- in most cases)
694
-
695
- Python-2.3 is now the minimum version.
696
-
697
- Dropped support for mx.Datetime and stringtimes; always uses Python
698
- datetime module now.
699
-
700
- Improved unit tests
701
-
702
- New connect() options:
703
- * charset: sets character set, implies use_unicode
704
- * sql_mode: sets SQL mode (i.e. ANSI, etc.; see MySQL docs)
705
-
706
- When using MySQL-4.1 or newer, enables MULTI_STATEMENTS
707
-
708
- When using MySQL-5.0 or newer, enables MULTI_RESULTS
709
-
710
- When using MySQL-4.1 or newer, more detailed warning messages
711
- are produced
712
-
713
- SET columns returned as Python Set types; you can pass a Set as
714
- a parameter to cursor.execute().
715
-
716
- Support for the new MySQL-5.0 DECIMAL implementation
717
-
718
- Support for Python Decimal type
719
-
720
- Some use of weak references internally. Cursors no longer leak
721
- if you don't close them. Connections still do, unfortunately.
722
-
723
- ursor.fetchXXXDict() methods raise DeprecationWarning
724
-
725
- cursor.begin() is making a brief reappearence.
726
-
727
- cursor.callproc() now works, with some limitations.
1
+ ======================
2
+ What's new in 2.3.1
3
+ ======================
4
+
5
+ Release: 2026-11-10
6
+
7
+ * **Security fix:** Escape Python ``set`` query parameters using the connection's
8
+ character set and SQL mode. This fixes SQL injection when
9
+ ``NO_BACKSLASH_ESCAPES`` is enabled and an attacker controls a set member.
10
+ ``frozenset`` parameters now use the same escaping.
11
+ See `GHSA-m9c3-99x3-77g6 <https://github.com/PyMySQL/mysqlclient/security/advisories/GHSA-m9c3-99x3-77g6>`_.
12
+
13
+ * Deprecate ``MySQLdb.converters.Set2Str``.
14
+
15
+ * ``Connection.literal()`` now applies built-in handling only to exact built-in
16
+ types. Subclasses use the connection's converter mapping.
17
+
18
+ * Fix crashes when looking up connection attributes with a non-string name or
19
+ a string containing lone surrogates. (#810)
20
+
21
+
22
+ ======================
23
+ What's new in 2.3.0
24
+ ======================
25
+
26
+ Release: 2026-09-07
27
+
28
+ * Concurrent use of the same Connection object from multiple threads now
29
+ raises ``ProgrammingError`` immediately instead of causing undefined
30
+ behavior.
31
+ Applications should use separate connections for concurrent operations.
32
+ (#781)
33
+
34
+ * Add an optional ``executemany_fallback="multi"`` connection option.
35
+ When enabled, ``Cursor.executemany()`` can batch eligible INSERT, REPLACE,
36
+ UPDATE, and DELETE statements into multi-statement queries instead of
37
+ executing them one at a time. This can significantly improve performance of
38
+ operations such as SQLAlchemy bulk UPDATEs. The default remains "loop",
39
+ and the existing multi-row INSERT/REPLACE optimization is unchanged. (#798)
40
+
41
+ * Add ``Cursor.warning_count`` to expose the warning count for the last
42
+ statement. (#780)
43
+
44
+ * Make ``Cursor`` itself an iterator as specified by DB-API 2.0.
45
+ ``iter(cursor) is cursor`` and ``next(cursor)`` fetches the next row. (#785)
46
+
47
+ * Quote stored procedure names and user variable names in ``Cursor.callproc()``,
48
+ allowing names containing reserved words or special characters. (#789)
49
+
50
+ * Fix conversion of ``datetime.timedelta`` values to support microseconds and
51
+ negative values correctly. (#795)
52
+
53
+ * Add Windows ARM64 wheels. (#796)
54
+
55
+ * Test with Python 3.15 and free-threaded Python 3.15, and update the MariaDB
56
+ Connector/C used for Windows wheels to 3.4.9. (#797)
57
+
58
+ * Add ``Connection.more_results()`` for checking whether additional results
59
+ remain after a multi-statement query. (#798)
60
+
61
+ * Deprecate accessing exception classes such as ``ProgrammingError`` and
62
+ ``OperationalError`` as ``Cursor`` attributes. Access them from the
63
+ ``MySQLdb`` package instead. (#782)
64
+
65
+ * Deprecate the ``reconnect`` parameter of ``Connection.ping()``. Calling
66
+ ``ping()`` without the parameter is unchanged. (#790)
67
+
68
+
69
+ ======================
70
+ What's new in 2.2.8
71
+ ======================
72
+
73
+ Release: 2026-02-10
74
+
75
+ * Add ``local_infile_dir`` option to restrict LOAD DATA LOCAL INFILE file path. (#755)
76
+ * windows wheel: Update mariadb-connector to 3.4.8 (#773)
77
+ * Add Python 3.14 and drop Python 3.8, 3.9 support. (#774)
78
+ * Experimental support for free threaded Python. Importing ``MySQLdb`` doesn't
79
+ enable the GIL anymore. This doesn't mean mysqlclient is thread safe.
80
+ You must not use same connection object from multiple threads concurrently. (#775)
81
+
82
+
83
+ ======================
84
+ What's new in 2.2.7
85
+ ======================
86
+
87
+ Release: 2025-01-10
88
+
89
+ * Add ``user``, ``host``, ``database``, and ``db`` attributes to ``Connection``.
90
+ opentelemetry-instrumentation-(dbapi|mysqlclient) use them. (#753)
91
+
92
+ ======================
93
+ What's new in 2.2.6
94
+ ======================
95
+
96
+ Release: 2024-11-12
97
+
98
+ * MariaDB Connector/C 3.4 and MairaDB 11.4 enabled SSL and CA verification by default.
99
+ It affected 2.2.5 windows wheel. This release disables SSL and CA verification by default. (#731)
100
+
101
+ * Add ``server_public_key_path`` option. It is needed to connect MySQL server with
102
+ ``sha256_password`` or ``caching_sha2_password`` authentication plugin without
103
+ secure connection. (#744)
104
+
105
+ ======================
106
+ What's new in 2.2.5
107
+ ======================
108
+
109
+ Release: 2024-10-20
110
+
111
+ * (Windows wheel) Update MariaDB Connector/C to 3.4.1. #726
112
+ * (Windows wheel) Build wheels for Python 3.13. #726
113
+
114
+ ======================
115
+ What's new in 2.2.4
116
+ ======================
117
+
118
+ Release: 2024-02-09
119
+
120
+ * Support ``ssl=True`` in ``connect()``. (#700)
121
+ This makes better compatibility with PyMySQL and mysqlclient==2.2.1
122
+ with libmariadb. See #698 for detail.
123
+
124
+
125
+ ======================
126
+ What's new in 2.2.3
127
+ ======================
128
+
129
+ Release: 2024-02-04
130
+
131
+ * Fix ``Connection.kill()`` method that broken in 2.2.2. (#689)
132
+
133
+
134
+ ======================
135
+ What's new in 2.2.2
136
+ ======================
137
+
138
+ Release: 2024-02-04
139
+
140
+ * Support building with MySQL 8.3 (#688).
141
+ * Deprecate ``db.shutdown()`` and ``db.kill()`` methods in docstring.
142
+ This is because ``mysql_shutdown()`` and ``mysql_kill()`` were removed in MySQL 8.3.
143
+ They will emit DeprecationWarning in the future but not for now.
144
+
145
+
146
+ ======================
147
+ What's new in 2.2.1
148
+ ======================
149
+
150
+ Release: 2023-12-13
151
+
152
+ * ``Connection.ping()`` avoid using ``MYSQL_OPT_RECONNECT`` option until
153
+ ``reconnect=True`` is specified. MySQL 8.0.33 start showing warning
154
+ when the option is used. (#664)
155
+ * Windows: Update MariaDB Connector/C to 3.3.8. (#665)
156
+ * Windows: Build wheels for Python 3.12 (#644)
157
+
158
+
159
+ ======================
160
+ What's new in 2.2.0
161
+ ======================
162
+
163
+ Release: 2023-06-22
164
+
165
+ * Use ``pkg-config`` instead of ``mysql_config`` (#586)
166
+ * Raise ProgrammingError on -inf (#557)
167
+ * Raise IntegrityError for ER_BAD_NULL. (#579)
168
+ * Windows: Use MariaDB Connector/C 3.3.4 (#585)
169
+ * Use pkg-config instead of mysql_config (#586)
170
+ * Add collation option (#564)
171
+ * Drop Python 3.7 support (#593)
172
+ * Use pyproject.toml for build (#598)
173
+ * Add Cursor.mogrify (#477)
174
+ * Partial support of ssl_mode option with mariadbclient (#475)
175
+ * Discard remaining results without creating Python objects (#601)
176
+ * Fix executemany with binary prefix (#605)
177
+
178
+ ======================
179
+ What's new in 2.1.1
180
+ ======================
181
+
182
+ Release: 2022-06-22
183
+
184
+ * Fix qualname of exception classes. (#522)
185
+ * Fix range check in ``MySQLdb._mysql.result.fetch_row()``. Invalid ``how`` argument caused SEGV. (#538)
186
+ * Fix docstring of ``_mysql.connect``. (#540)
187
+ * Windows: Binary wheels are updated. (#541)
188
+ * Use MariaDB Connector/C 3.3.1.
189
+ * Use cibuildwheel to build wheels.
190
+ * Python 3.8-3.11
191
+
192
+ ======================
193
+ What's new in 2.1.0
194
+ ======================
195
+
196
+ Release: 2021-11-17
197
+
198
+ * Add ``multistatement=True`` option. You can disable multi statement. (#500).
199
+ * Remove unnecessary bytes encoder which is remained for Django 1.11
200
+ compatibility (#490).
201
+ * Deprecate ``passwd`` and ``db`` keyword. Use ``password`` and ``database``
202
+ instead. (#488).
203
+ * Windows: Binary wheels are built with MariaDB Connector/C 3.2.4. (#508)
204
+ * ``set_character_set()`` sends ``SET NAMES`` query always. This means
205
+ all new connections send it too. This solves compatibility issues
206
+ when server and client library are different version. (#509)
207
+ * Remove ``escape()`` and ``escape_string()`` from ``MySQLdb`` package.
208
+ (#511)
209
+ * Add Python 3.10 support and drop Python 3.5 support.
210
+
211
+ ======================
212
+ What's new in 2.0.3
213
+ ======================
214
+
215
+ Release: 2021-01-01
216
+
217
+ * Add ``-std=c99`` option to cflags by default for ancient compilers that doesn't
218
+ accept C99 by default.
219
+ * You can customize cflags and ldflags by setting ``MYSQLCLIENT_CFLAGS`` and
220
+ ``MYSQLCLIENT_LDFLAGS``. It overrides ``mysql_config``.
221
+
222
+ ======================
223
+ What's new in 2.0.2
224
+ ======================
225
+
226
+ Release: 2020-12-10
227
+
228
+ * Windows: Update MariaDB Connector/C to 3.1.11.
229
+ * Optimize fetching many rows with DictCursor.
230
+
231
+ ======================
232
+ What's new in 2.0.1
233
+ ======================
234
+
235
+ Release: 2020-07-03
236
+
237
+ * Fixed multithread safety issue in fetching row.
238
+ * Removed obsolete members from Cursor. (e.g. `messages`, `_warnings`, `_last_executed`)
239
+
240
+ ======================
241
+ What's new in 2.0.0
242
+ ======================
243
+
244
+ Release: 2020-07-02
245
+
246
+ * Dropped Python 2 support
247
+ * Dropped Django 1.11 support
248
+ * Add context manager interface to Connection which closes the connection on ``__exit__``.
249
+ * Add ``ssl_mode`` option.
250
+
251
+
252
+ ======================
253
+ What's new in 1.4.6
254
+ ======================
255
+
256
+ Release: 2019-11-21
257
+
258
+ * The ``cp1252`` encoding is used when charset is "latin1". (#390)
259
+
260
+ ======================
261
+ What's new in 1.4.5
262
+ ======================
263
+
264
+ Release: 2019-11-06
265
+
266
+ * The ``auth_plugin`` option is added. (#389)
267
+
268
+
269
+ ======================
270
+ What's new in 1.4.4
271
+ ======================
272
+
273
+ Release: 2019-08-12
274
+
275
+ * ``charset`` option is passed to ``mysql_options(mysql, MYSQL_SET_CHARSET_NAME, charset)``
276
+ before ``mysql_real_connect`` is called.
277
+ This avoid extra ``SET NAMES <charset>`` query when creating connection.
278
+
279
+
280
+ ======================
281
+ What's new in 1.4.3
282
+ ======================
283
+
284
+ Release: 2019-08-09
285
+
286
+ * ``--static`` build supports ``libmariadbclient.a``
287
+ * Try ``mariadb_config`` when ``mysql_config`` is not found
288
+ * Fixed warning happened in Python 3.8 (#359)
289
+ * Fixed ``from MySQLdb import *``, while I don't recommend it. (#369)
290
+ * Fixed SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
291
+ no connection is created. (#367)
292
+ * Fixed many circular references are created in ``Cursor.executemany()``. (#375)
293
+
294
+
295
+ ======================
296
+ What's new in 1.4.2
297
+ ======================
298
+
299
+ Release: 2019-02-08
300
+
301
+ * Fix Django 1.11 compatibility. (#327)
302
+ mysqlclient 1.5 will not support Django 1.11. It is not because
303
+ mysqlclient will break backward compatibility, but Django used
304
+ unsupported APIs and Django 1.11 don't fix bugs including
305
+ compatibility issues.
306
+
307
+ ======================
308
+ What's new in 1.4.1
309
+ ======================
310
+
311
+ Release: 2019-01-19
312
+
313
+ * Fix dict parameter support (#323, regression of 1.4.0)
314
+
315
+ ======================
316
+ What's new in 1.4.0
317
+ ======================
318
+
319
+ Release: 2019-01-18
320
+
321
+ * Dropped Python 3.4 support.
322
+
323
+ * Removed ``threadsafe`` and ``embedded`` build options.
324
+
325
+ * Remove some deprecated cursor classes and methods.
326
+
327
+ * ``_mysql`` and ``_mysql_exceptions`` modules are moved under
328
+ ``MySQLdb`` package. (#293)
329
+
330
+ * Remove ``errorhandler`` from Connection and Cursor classes.
331
+
332
+ * Remove context manager API from Connection. It was for transaction.
333
+ New context manager API for closing connection will be added in future version.
334
+
335
+ * Remove ``waiter`` option from Connection.
336
+
337
+ * Remove ``escape_sequence``, and ``escape_dict`` methods from Connection class.
338
+
339
+ * Remove automatic MySQL warning checking.
340
+
341
+ * Drop support for MySQL Connector/C with MySQL<5.1.12.
342
+
343
+ * Remove ``_mysql.NULL`` constant.
344
+
345
+ * Remove ``_mysql.thread_safe()`` function.
346
+
347
+ * Support non-ASCII field name with non-UTF-8 connection encoding. (#210)
348
+
349
+ * Optimize decoding speed of string and integer types.
350
+
351
+ * Remove ``MySQLdb.constants.REFRESH`` module.
352
+
353
+ * Remove support for old datetime format for MySQL < 4.1.
354
+
355
+ * Fix wrong errno is raised when ``mysql_real_connect`` is failed. (#316)
356
+
357
+
358
+ ======================
359
+ What's new in 1.3.14
360
+ ======================
361
+
362
+ Release: 2018-12-04
363
+
364
+ * Support static linking of MariaDB Connector/C (#265)
365
+
366
+ * Better converter for Decimal and Float (#267, #268, #273, #286)
367
+
368
+ * Add ``Connection._get_native_connection`` for XTA project (#269)
369
+
370
+ * Fix SEGV on MariaDB Connector/C when some methods of ``Connection``
371
+ objects are called after ``Connection.close()`` is called. (#270, #272, #276)
372
+ See https://jira.mariadb.org/browse/CONC-289
373
+
374
+ * Fix ``Connection.client_flag`` (#266)
375
+
376
+ * Fix SSCursor may raise same exception twice (#282)
377
+
378
+ * This removed ``Cursor._last_executed`` which was duplicate of ``Cursor._executed``.
379
+ Both members are private. So this type of changes are not documented in changelog
380
+ generally. But Django used the private member for ``last_executed_query`` implementation.
381
+ If you use the method the method directly or indirectly, this version will break
382
+ your application. See https://code.djangoproject.com/ticket/30013
383
+
384
+ * ``waiter`` option is now deprecated. (#285)
385
+
386
+ * Fixed SSL support is not detected when built with MySQL < 5.1 (#291)
387
+
388
+
389
+ ======================
390
+ What's new in 1.3.13
391
+ ======================
392
+
393
+ Support build with MySQL 8
394
+
395
+ Fix decoding tiny/medium/long blobs (#215)
396
+
397
+ Remove broken row_seek() and row_tell() APIs (#220)
398
+
399
+ Reduce callproc roundtrip time (#223)
400
+
401
+
402
+ ======================
403
+ What's new in 1.3.12
404
+ ======================
405
+
406
+ Fix tuple argument again (#201)
407
+
408
+ InterfaceError is raised when Connection.query() is called for closed connection (#202)
409
+
410
+ ======================
411
+ What's new in 1.3.11
412
+ ======================
413
+
414
+ Support MariaDB 10.2 client library (#197, #177, #200)
415
+
416
+ Add NEWDECIMAL to the NUMBER DBAPISet (#167)
417
+
418
+ Allow bulk insert which no space around `VALUES` (#179)
419
+
420
+ Fix leak of `connection->converter`. (#182)
421
+
422
+ Support error `numbers > CR_MAX_ERROR` (#188)
423
+
424
+ Fix tuple argument support (#145)
425
+
426
+
427
+ ======================
428
+ What's new in 1.3.10
429
+ ======================
430
+
431
+ Added `binary_prefix` option (disabled by default) to support
432
+ `_binary` prefix again. (#134)
433
+
434
+ Fix SEGV of `_mysql.result()` when argument's type is unexpected. (#138)
435
+
436
+ Deprecate context interface of Connection object. (#149)
437
+
438
+ Don't use workaround of `bytes.decode('ascii', 'surrogateescape')` on Python 3.6+. (#150)
439
+
440
+
441
+ =====================
442
+ What's new in 1.3.9
443
+ =====================
444
+
445
+ Revert adding `_binary` prefix for bytes/bytearray parameter. It broke backward compatibility.
446
+
447
+ Fix Windows compile error on MSVC.
448
+
449
+
450
+ =====================
451
+ What's new in 1.3.8
452
+ =====================
453
+
454
+ Update error constants (#113)
455
+
456
+ Use `_binary` prefix for bytes/bytearray parameters (#106)
457
+
458
+ Use mysql_real_escape_string_quote() if exists (#109)
459
+
460
+ Better Warning propagation (#101)
461
+
462
+ Fix conversion error when mysql_affected_rows returns -1
463
+
464
+ Fix Cursor.callproc may raise TypeError (#90, #91)
465
+
466
+ connect() supports the 'database' and 'password' keyword arguments.
467
+
468
+ Fix accessing dangling pointer when using ssl (#78)
469
+
470
+ Accept %% in Cursor.executemany (#83)
471
+
472
+ Fix warning that caused TypeError on Python 3 (#68)
473
+
474
+ =====================
475
+ What's new in 1.3.7
476
+ =====================
477
+
478
+ Support link args other than '-L' and '-l' from mysql_config.
479
+
480
+ Missing value for column without default value cause IntegrityError. (#33)
481
+
482
+ Support BIT type. (#38)
483
+
484
+ More tests for date and time columns. (#41)
485
+
486
+ Fix calling .execute() method for closed cursor cause TypeError. (#37)
487
+
488
+ Improve performance to parse date. (#43)
489
+
490
+ Support geometry types (#49)
491
+
492
+ Fix warning while multi statement cause ProgrammingError. (#48)
493
+
494
+
495
+ =====================
496
+ What's new in 1.3.6
497
+ =====================
498
+
499
+ Fix escape_string() doesn't work.
500
+
501
+ Remove `Cursor.__del__` to fix uncollectable circular reference on Python 3.3.
502
+
503
+ Add context manager support to `Cursor`. It automatically closes cursor on `__exit__`.
504
+
505
+ .. code-block::
506
+
507
+ with conn.cursor() as cur:
508
+ cur.execute("SELECT 1+1")
509
+ print(cur.fetchone())
510
+ # cur is now closed
511
+
512
+
513
+ =====================
514
+ What's new in 1.3.5
515
+ =====================
516
+
517
+ Fix TINYBLOB, MEDIUMBLOB and LONGBLOB are treated as string and decoded
518
+ to unicode or cause UnicodeError.
519
+
520
+ Fix aware datetime is formatted with timezone offset (e.g. "+0900").
521
+
522
+
523
+ =====================
524
+ What's new in 1.3.4
525
+ =====================
526
+
527
+ * Remove compiler warnings.
528
+ * Fix compile error when using libmariadbclient.
529
+ * Fix GIL deadlock while dealloc.
530
+
531
+ =====================
532
+ What's new in 1.3.3
533
+ =====================
534
+
535
+ * Fix exception reraising doesn't work.
536
+
537
+ =====================
538
+ What's new in 1.3.2
539
+ =====================
540
+
541
+ * Add send_query() and read_query_result() method to low level connection.
542
+ * Add waiter option.
543
+
544
+
545
+ =====================
546
+ What's new in 1.3.1
547
+ =====================
548
+
549
+ This is a first fork of MySQL-python.
550
+ Now named "mysqlclient"
551
+
552
+ * Support Python 3
553
+ * Add autocommit option
554
+ * Support microsecond in datetime field.
555
+
556
+
557
+ =====================
558
+ What's new in 1.2.4
559
+ =====================
560
+
561
+ final
562
+ =====
563
+
564
+ No changes.
565
+
566
+
567
+ rc 1
568
+ ====
569
+
570
+ Fixed a dangling reference to the old types module.
571
+
572
+
573
+ beta 5
574
+ ======
575
+
576
+ Another internal fix for handling remapped character sets.
577
+
578
+ `_mysql.c` was broken for the case where read_timeout was *not* available. (Issue #6)
579
+
580
+ Documentation was converted to sphinx but there is a lot of cleanup left to do.
581
+
582
+
583
+ beta 4
584
+ ======
585
+
586
+ Added support for the MySQL read_timeout option. Contributed by
587
+ Jean Schurger (jean@schurger.org).
588
+
589
+ Added a workaround so that the MySQL character set utf8mb4 works with Python; utf8 is substituted
590
+ on the Python side.
591
+
592
+
593
+ beta 3
594
+ ======
595
+
596
+ Unified test database configuration, and set up CI testing with Travis.
597
+
598
+ Applied several patches from André Malo (ndparker@users.sf.net) which fix some issues
599
+ with exception handling and reference counting and TEXT/BLOB conversion.
600
+
601
+
602
+ beta 2
603
+ ======
604
+
605
+ Reverted an accidental change in the exception format. (issue #1)
606
+
607
+ Reverted some raise statements so that they will continue to work with Python < 2.6
608
+
609
+
610
+ beta 1
611
+ ======
612
+
613
+ A lot of work has been done towards Python 3 compatibility, and avoiding warnings with Python 2.7.
614
+ This includes import changes, converting dict.has_kay(k) to k in dict, updating some test suite methods, etc.
615
+
616
+ Due to the difficulties of supporting Python 3 and Python < 2.7, 1.2.4 will support Python 2.4 though 2.7.
617
+ 1.3.0 will support Python 3 and Python 2.7 and 2.6.
618
+
619
+ MySQLdb-2.0 is instead going to become moist-1.0. See https://github.com/farcepest/moist
620
+
621
+ The Windows build has been simplified, and I plan to correct pre-built i386 packages built
622
+ against the python.org Python-2.7 package and MySQL Connector/C-6.0. Contact me if you
623
+ need ia64 packages.
624
+
625
+ The connection's cursorclass (if not default) was being lost on reconnect.
626
+
627
+ Newer versions of MySQL don't use OpenSSL and therefore don't have HAVE_SSL defined, but they do have
628
+ a different SSL library. Fixed this so SSL support would be enabled in this case.
629
+
630
+ The regex that looked for SQL INSERT statement and VALUES in cursor.executemany() was made case-insensitive
631
+ again.
632
+
633
+
634
+ =====================
635
+ What's new in 1.2.3
636
+ =====================
637
+
638
+ ez_setup.py has been update to include various fixes that affect the build.
639
+
640
+ Better Python version and dependency detection as well as eliminate exception
641
+ warnings under Python 2.6.
642
+
643
+ Eliminated memory leaks related to Unicode and failed connections.
644
+
645
+ Corrected connection .escape() functionality.
646
+
647
+ Miscellaneous cleanups and and expanded testing suite to ensure ongoing release
648
+ quality.
649
+
650
+ =====================
651
+ What's new in 1.2.2
652
+ =====================
653
+
654
+ The build system has been completely redone and should now build
655
+ on Windows without any patching; uses setuptools.
656
+
657
+ Added compatibility for Python 2.5, including support for with statement.
658
+
659
+ connection.ping() now takes an optional boolean argument which can
660
+ enable (or disable) automatic reconnection.
661
+
662
+ Support returning SET columns as Python sets was removed due to an
663
+ API bug in MySQL; corresponding test removed.
664
+
665
+ Added a test for single-character CHAR columns.
666
+
667
+ BLOB columns are now returned as Python strings instead of byte arrays.
668
+
669
+ BINARY character columns are always returned as Python strings, and not
670
+ unicode.
671
+
672
+ Fixed a bug introduced in 1.2.1 where the new SHOW WARNINGS support broke
673
+ SSCursor.
674
+
675
+ Only encode the query (convert to a string) when it is a unicode instance;
676
+ re-encoding encoded strings would break things.
677
+
678
+ Make a deep copy of conv when connecting, since it can be modified.
679
+
680
+ Added support for new VARCHAR and BIT column types.
681
+
682
+ DBAPISet objects were broken, but nobody noticed.
683
+
684
+
685
+ ========================
686
+ What's new in 1.2.1_p2
687
+ ========================
688
+
689
+ There are some minor build fixes which probably only affect MySQL
690
+ older than 4.0.
691
+
692
+ If you had MySQL older than 4.1, the new charset and sql_mode
693
+ parameters didn't work right. In fact, it was impossible to create
694
+ a connection due to the charset problem.
695
+
696
+ If you are using MySQL-4.1 or newer, there is no practical difference
697
+ between 1.2.1 and 1.2.1_p2, and you don't need to upgrade.
698
+
699
+
700
+ =====================
701
+ What's new in 1.2.1
702
+ =====================
703
+
704
+ Switched to Subversion. Was going to do this for 1.3, but a
705
+ SourceForge CVS outage has forced the issue.
706
+
707
+ Mapped a lot of new 4.1 and 5.0 error codes to Python exceptions
708
+
709
+ Added an API call for mysql_set_character_set(charset) (MySQL > 5.0.7)
710
+
711
+ Added an API call for mysql_get_character_set_info() (MySQL > 5.0.10)
712
+
713
+ Revamped the build system. Edit site.cfg if necessary (probably not
714
+ in most cases)
715
+
716
+ Python-2.3 is now the minimum version.
717
+
718
+ Dropped support for mx.Datetime and stringtimes; always uses Python
719
+ datetime module now.
720
+
721
+ Improved unit tests
722
+
723
+ New connect() options:
724
+ * charset: sets character set, implies use_unicode
725
+ * sql_mode: sets SQL mode (i.e. ANSI, etc.; see MySQL docs)
726
+
727
+ When using MySQL-4.1 or newer, enables MULTI_STATEMENTS
728
+
729
+ When using MySQL-5.0 or newer, enables MULTI_RESULTS
730
+
731
+ When using MySQL-4.1 or newer, more detailed warning messages
732
+ are produced
733
+
734
+ SET columns returned as Python Set types; you can pass a Set as
735
+ a parameter to cursor.execute().
736
+
737
+ Support for the new MySQL-5.0 DECIMAL implementation
738
+
739
+ Support for Python Decimal type
740
+
741
+ Some use of weak references internally. Cursors no longer leak
742
+ if you don't close them. Connections still do, unfortunately.
743
+
744
+ ursor.fetchXXXDict() methods raise DeprecationWarning
745
+
746
+ cursor.begin() is making a brief reappearence.
747
+
748
+ cursor.callproc() now works, with some limitations.