mysqlclient 2.2.1__tar.gz → 2.2.2__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 (45) hide show
  1. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/HISTORY.rst +12 -0
  2. {mysqlclient-2.2.1/src/mysqlclient.egg-info → mysqlclient-2.2.2}/PKG-INFO +1 -1
  3. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/user_guide.rst +1 -1
  4. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/_mysql.c +11 -5
  5. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/connections.py +3 -1
  6. mysqlclient-2.2.2/src/MySQLdb/release.py +3 -0
  7. {mysqlclient-2.2.1 → mysqlclient-2.2.2/src/mysqlclient.egg-info}/PKG-INFO +1 -1
  8. mysqlclient-2.2.1/src/MySQLdb/release.py +0 -3
  9. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/LICENSE +0 -0
  10. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/MANIFEST.in +0 -0
  11. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/README.md +0 -0
  12. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/FAQ.rst +0 -0
  13. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/MySQLdb.constants.rst +0 -0
  14. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/MySQLdb.rst +0 -0
  15. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/conf.py +0 -0
  16. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/doc/index.rst +0 -0
  17. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/pyproject.toml +0 -0
  18. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/setup.cfg +0 -0
  19. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/setup.py +0 -0
  20. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/site.cfg +0 -0
  21. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/__init__.py +0 -0
  22. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/_exceptions.py +0 -0
  23. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/CLIENT.py +0 -0
  24. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/CR.py +0 -0
  25. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/ER.py +0 -0
  26. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/FIELD_TYPE.py +0 -0
  27. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/FLAG.py +0 -0
  28. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/constants/__init__.py +0 -0
  29. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/converters.py +0 -0
  30. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/cursors.py +0 -0
  31. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/MySQLdb/times.py +0 -0
  32. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/mysqlclient.egg-info/SOURCES.txt +0 -0
  33. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/mysqlclient.egg-info/dependency_links.txt +0 -0
  34. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/src/mysqlclient.egg-info/top_level.txt +0 -0
  35. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/capabilities.py +0 -0
  36. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/configdb.py +0 -0
  37. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/dbapi20.py +0 -0
  38. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_MySQLdb_capabilities.py +0 -0
  39. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_MySQLdb_dbapi20.py +0 -0
  40. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_MySQLdb_nonstandard.py +0 -0
  41. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_MySQLdb_times.py +0 -0
  42. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test__mysql.py +0 -0
  43. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_connection.py +0 -0
  44. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_cursor.py +0 -0
  45. {mysqlclient-2.2.1 → mysqlclient-2.2.2}/tests/test_errors.py +0 -0
@@ -1,3 +1,15 @@
1
+ ======================
2
+ What's new in 2.2.2
3
+ ======================
4
+
5
+ Release: 2024-02-04
6
+
7
+ * Support building with MySQL 8.3 (#688).
8
+ * Deprecate ``db.shutdown()`` and ``db.kill()`` methods in docstring.
9
+ This is because ``mysql_shutdown()`` and ``mysql_kill()`` were removed in MySQL 8.3.
10
+ They will emit DeprecationWarning in the future but not for now.
11
+
12
+
1
13
  ======================
2
14
  What's new in 2.2.1
3
15
  ======================
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mysqlclient
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: Python interface to MySQL
5
5
  Author-email: Inada Naoki <songofacandy@gmail.com>
6
6
  License: GNU General Public License v2 (GPLv2)
@@ -14,7 +14,7 @@ database server that provides the Python database API.
14
14
  Installation
15
15
  ------------
16
16
 
17
- The ``README`` file has complete installation instructions.
17
+ The `README <https://github.com/PyMySQL/mysqlclient/blob/main/README.md>`_ file has complete installation instructions.
18
18
 
19
19
 
20
20
  MySQLdb._mysql
@@ -524,8 +524,13 @@ _mysql_ConnectionObject_Initialize(
524
524
  mysql_options(&(self->connection), MYSQL_OPT_LOCAL_INFILE, (char *) &local_infile);
525
525
 
526
526
  if (ssl) {
527
- mysql_ssl_set(&(self->connection), key, cert, ca, capath, cipher);
527
+ mysql_options(&(self->connection), MYSQL_OPT_SSL_KEY, key);
528
+ mysql_options(&(self->connection), MYSQL_OPT_SSL_CERT, cert);
529
+ mysql_options(&(self->connection), MYSQL_OPT_SSL_CA, ca);
530
+ mysql_options(&(self->connection), MYSQL_OPT_SSL_CAPATH, capath);
531
+ mysql_options(&(self->connection), MYSQL_OPT_SSL_CIPHER, cipher);
528
532
  }
533
+
529
534
  if (ssl_mode) {
530
535
  #ifdef HAVE_ENUM_MYSQL_OPT_SSL_MODE
531
536
  mysql_options(&(self->connection), MYSQL_OPT_SSL_MODE, &ssl_mode_num);
@@ -1780,7 +1785,7 @@ _mysql_ConnectionObject_insert_id(
1780
1785
 
1781
1786
  static char _mysql_ConnectionObject_kill__doc__[] =
1782
1787
  "Asks the server to kill the thread specified by pid.\n\
1783
- Non-standard.";
1788
+ Non-standard. Deprecated.";
1784
1789
 
1785
1790
  static PyObject *
1786
1791
  _mysql_ConnectionObject_kill(
@@ -1789,10 +1794,11 @@ _mysql_ConnectionObject_kill(
1789
1794
  {
1790
1795
  unsigned long pid;
1791
1796
  int r;
1797
+ char query[50];
1792
1798
  if (!PyArg_ParseTuple(args, "k:kill", &pid)) return NULL;
1793
1799
  check_connection(self);
1794
1800
  Py_BEGIN_ALLOW_THREADS
1795
- r = mysql_kill(&(self->connection), pid);
1801
+ r = mysql_query(&(self->connection), snprintf(query, 50, "KILL %d", pid));
1796
1802
  Py_END_ALLOW_THREADS
1797
1803
  if (r) return _mysql_Exception(self);
1798
1804
  Py_RETURN_NONE;
@@ -1997,7 +2003,7 @@ _mysql_ConnectionObject_select_db(
1997
2003
 
1998
2004
  static char _mysql_ConnectionObject_shutdown__doc__[] =
1999
2005
  "Asks the database server to shut down. The connected user must\n\
2000
- have shutdown privileges. Non-standard.\n\
2006
+ have shutdown privileges. Non-standard. Deprecated.\n\
2001
2007
  ";
2002
2008
 
2003
2009
  static PyObject *
@@ -2008,7 +2014,7 @@ _mysql_ConnectionObject_shutdown(
2008
2014
  int r;
2009
2015
  check_connection(self);
2010
2016
  Py_BEGIN_ALLOW_THREADS
2011
- r = mysql_shutdown(&(self->connection), SHUTDOWN_DEFAULT);
2017
+ r = mysql_query(&(self->connection), "SHUTDOWN");
2012
2018
  Py_END_ALLOW_THREADS
2013
2019
  if (r) return _mysql_Exception(self);
2014
2020
  Py_RETURN_NONE;
@@ -193,7 +193,9 @@ class Connection(_mysql.connection):
193
193
  super().__init__(*args, **kwargs2)
194
194
  self.cursorclass = cursorclass
195
195
  self.encoders = {
196
- k: v for k, v in conv.items() if type(k) is not int # noqa: E721
196
+ k: v
197
+ for k, v in conv.items()
198
+ if type(k) is not int # noqa: E721
197
199
  }
198
200
 
199
201
  self._server_version = tuple(
@@ -0,0 +1,3 @@
1
+ __author__ = "Inada Naoki <songofacandy@gmail.com>"
2
+ __version__ = "2.2.2"
3
+ version_info = (2, 2, 2, "final", 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mysqlclient
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: Python interface to MySQL
5
5
  Author-email: Inada Naoki <songofacandy@gmail.com>
6
6
  License: GNU General Public License v2 (GPLv2)
@@ -1,3 +0,0 @@
1
- __author__ = "Inada Naoki <songofacandy@gmail.com>"
2
- __version__ = "2.2.1"
3
- version_info = (2, 2, 1, "final", 0)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes