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