463 Commits

Author SHA1 Message Date
86491882e6 Drop Python 2 support from C source (#406) 2019-11-29 14:24:28 +09:00
026e87f7b5 Remove py27 support from Python sources. (#394) 2019-11-28 22:04:42 +09:00
713d3625f8 fixup docs 2019-11-19 17:29:03 +09:00
edeab3040d Use cp1252 for latin1 charset (#398) 2019-11-18 21:22:39 +09:00
0da81656e9 fix PyMemberDef type of two attributes (#395) 2019-11-08 00:59:46 +09:00
acf4cdcf89 Add 'auth_plugin' option (#389) 2019-10-23 19:19:23 +09:00
b400acddd0 set charset before connect (#382) 2019-08-11 11:23:40 +09:00
62c8c8c62b call mysql_library_init in module initialization (#377) 2019-08-08 21:31:25 +09:00
b3e775a780 fix Cursor.executemany created many circular references (#375) 2019-08-08 18:55:21 +09:00
23addef86d Remove unused "NULL" from __all__ in __init__.py (#369)
Since the symbol "NULL" is removed in 819688b6, it should be also
removed from `__all__`. Fix issue #368.
2019-07-17 14:10:32 +09:00
6f5f48b76c use PY_SSIZE_T_CLEAN (#360)
Fixes #359
2019-06-08 23:53:46 +09:00
b66971ee36 memory leak in ConnectionObject_Initialize when mysql_real_connect fails (#350)
We can't set open=0 after we mysql_init or dealloc will not cleanup the memory.

Also if mysql_init returns NULL we are out of memory and shouldn't set open=1, or we could segfault in dealloc if we didn't seg before that.
2019-03-26 06:46:32 +09:00
e04c5972f5 Add missing break (#346)
Fixes #343
2019-03-19 17:02:44 +09:00
e52812fd15 Improve docstring of use_unicode and charset options (#345) 2019-03-19 16:55:38 +09:00
f683ee7826 Fix typo in docstring and minor formatting (#336) 2019-03-03 12:13:38 +09:00
1f6e18d345 Add some garbage for Django 1.11 compatibility (#327)
Django touched private area of this library.
Removing unused variables broke Django.

While Django 2.0 fixed it, Django 1.11 doesn't fix it
because it is in security-only fix mode.

So add unused variables for Django 1.11 compatibility.
They will be removed in next minor release.

Fix #303, #306
2019-02-07 18:05:40 +09:00
f48a294aaa Fix dict parameter support (#324) 2019-01-19 12:55:41 +09:00
3870135037 Fix windows build (#322) 2019-01-18 20:52:10 +09:00
ea80e8f07a Fix error handling of mysql_real_connect (#317)
Fixes #316
2018-12-17 19:27:54 +09:00
74c16e7afa Remove unused converters (#315) 2018-12-14 17:24:15 +09:00
8ad1525c3f Raise ProgrammingError for nan and inf (#314)
* Raise ProgrammingError when inf or nan is passed
  Fixes #246
* Rename _mysql_exceptions -> _exceptions
2018-12-14 16:46:30 +09:00
911bef988c Refactor extension module initialization (#313) 2018-12-13 20:23:46 +09:00
0b6c6656f2 Refactoring JSON support (#312) 2018-12-13 17:40:37 +09:00
4b40c8ce05 Remove _mysql.thread_safe() (#311) 2018-12-13 16:10:58 +09:00
aca63e5d1c Use Py_RETURN_NONE 2018-12-13 12:44:25 +09:00
fe8032430c Reimplement JSON support (#310) 2018-12-13 12:41:53 +09:00
bf77dd0633 Update FIELD_TYPEs (#309) 2018-12-12 20:25:12 +09:00
aca3a396c7 Remove old TIMESTAMP format for MySQL<4.1 (#308) 2018-12-12 17:51:48 +09:00
80278a266e Update ER and CR (#307) 2018-12-12 16:52:03 +09:00
9f31f592f2 Removed MySQLdb.constants.REFRESH 2018-12-11 16:19:47 +09:00
3bea8cd8dd Faster string and int decoder (#305) 2018-12-11 11:50:42 +09:00
ae6b108b56 Remove HAVE_MYSQL_OPT_TIMEOUTS
Drop MySQL<5.1.12 support
2018-12-10 19:08:19 +09:00
e48e393e68 Update compat 2018-12-07 13:51:17 +09:00
819688b630 Simplify converters (#304) 2018-12-07 13:50:05 +09:00
5e8eeac47f Stop using surrogate escape (#302)
It was workaround for `bytes %`.
Since we dropped Python 3.4 support, we can use just `bytes %` now.
2018-12-07 02:39:33 +09:00
a33e1c3836 Format 2018-12-06 19:33:31 +09:00
c754b25080 Support field name other than UTF-8 (#301) 2018-12-06 02:39:25 +09:00
27e40186e3 Resurrect Connection.fileno() (#300)
This permits low-level access to the underlying network connection.
For example, this can be used to tweak the TCP timeout (TCP_USER_TIMEOUT).
2018-12-05 19:08:35 +09:00
3bdcb26832 Expand TABs 2018-12-05 18:46:29 +09:00
41581254f8 Fix a reference leak in store_result and use_result if result object initialization fails. (#298) 2018-12-05 12:31:33 +09:00
c2e5ff7bd3 Support utf8mb3 2018-12-04 22:25:57 +09:00
20ee2e307b Fix warnings 2018-12-04 22:06:08 +09:00
5af8ece7ac Remove automatic warning check (#296) 2018-12-04 21:54:14 +09:00
16915a0353 Remove fileno, escape_sequence, and escape_dict from Connection (#297) 2018-12-04 21:50:30 +09:00
de44ff07e7 Remove waiter option 2018-12-04 20:59:16 +09:00
c64915b1e5 Remove context interface from Connector (#295) 2018-12-04 20:53:53 +09:00
0d7fcc269c Remove errorhandler (#294) 2018-12-04 20:36:04 +09:00
833816ee87 Move _mysql and _mysql_exceptions into MySQLdb/ (#293) 2018-12-04 20:19:04 +09:00
bd62c5d5d7 cursor: Remove deprecated methods and classes 2018-12-04 19:36:33 +09:00
9f71220b92 Fix conversion of decimals with exponent (#286) 2018-11-07 16:46:02 +09:00