1071 Commits

Author SHA1 Message Date
a72b7aa707 ci: add Python 3.12 in test matrix (#644) 2023-08-21 17:54:30 +09:00
fc6b9da632 fix templates 2023-07-02 03:07:09 +09:00
8878212ee9 Move issue report to discussions 2023-07-02 03:04:51 +09:00
1468dce073 Update README.md (#633)
fixed typo in Customize build (POSIX)
2023-06-30 12:22:35 +09:00
807933eb25 Support pkg-config libmariadb (#631)
Fix #629.
2023-06-29 17:36:30 +09:00
4f2a8393c7 update issue config 2023-06-23 05:07:28 +09:00
1b29c60d44 Update bugreport issue template 2023-06-23 05:05:24 +09:00
020f040ce1 Add issue template config 2023-06-23 04:09:24 +09:00
df302ff62f Add discussion template 2023-06-23 04:05:48 +09:00
eb5cb3d564 Add build dependency for pkg-config to README (#621)
Fix #620
2023-06-22 22:10:48 +09:00
1e1405587c Release v2.2.0 (#618) v2.2.0 2023-06-22 14:51:11 +09:00
ae1a098930 Configure Renovate (#616) 2023-06-22 03:23:57 +09:00
d05a00eebc ci: Run django test after our test (#612) 2023-05-21 02:46:16 +09:00
c650aa0d4f CI: Use MariaDB (#611) 2023-05-21 02:03:59 +09:00
d48c8524cb CI: Fix Windows wheel build workflow 2023-05-19 13:44:56 +09:00
640fe6de2a Release v2.2.0rc1 (#607) v2.2.0rc1 2023-05-19 13:20:33 +09:00
5dfab4d9c5 CI: Update Django test workflow (#610) 2023-05-19 03:04:56 +09:00
398208f8c8 Fix mariadbclient SSL support (#609) 2023-05-19 02:11:13 +09:00
ba85984505 Update README.md 2023-05-18 20:21:11 +09:00
b162dddcf3 Fix Connection.escape() with Unicode input (#608)
After aed1dd2, Connection.escape() used ASCII to escape Unicode input.
This commit makes it uses connection encoding instead.
2023-05-18 20:08:04 +09:00
44d0f7a148 CI: Fix Django test (#606) 2023-05-18 18:02:28 +09:00
62f0645376 Fix executemany with binary prefix (#605)
Fix #494
2023-05-18 17:52:38 +09:00
3d6b8c9b7c Release GIL during result.discard() (#604) 2023-05-18 17:19:10 +09:00
3517eb77b7 Fix sphinx warnings (#602)
Fix #539
2023-05-17 10:58:18 +09:00
a2e970698f Discard results without converting them into Python objects. (#601)
Fixes #560.
2023-05-17 02:08:52 +09:00
0220f427a9 Use src-layout. (#600) 2023-05-15 23:50:10 +09:00
abb139bc54 Support ssl_mode setting with mariadb client (#475)
According to https://mariadb.com/kb/en/mysql_optionsv/ MariaDB supports
TLS enforcing in its own way. So the idea behind this PR is to keep the
same interface for MariaDB based clients, but behind the scenes handle
it accordingly.(MariaDB gets its own args set, instead of ssl_mode dict
supported by MySQL).

Co-authored-by: Teodor Moroz <teodor.moroz@openvpn.net>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-15 18:09:04 +09:00
9953e509c4 Add Cursor.mogrify(). (#477)
Implements #476

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-15 14:17:21 +09:00
89c1e0f3c6 Use pyproject.toml (#598) 2023-05-15 13:22:35 +09:00
cbd894c3b1 CI: Fix django workflow (#597) 2023-05-10 17:15:22 +09:00
b7255d3aea Improved exception handling when importing the module (#596)
The current expection handling is too vague, and in certain
circumstances, the error message may confuse the user.

For example, if an error occurs while importing the "_mysql" module, the
original error message is as follows:

```
  File "MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: /lib64/libstdc++.so.6: cannot allocate memory in static TLS block
```

But on the user side, he can only see the exception message like this: 

```
/MySQLdb/__init__.py", line 24, in <module>
    version_info, _mysql.version_info, _mysql.__file__
NameError: name '_mysql' is not defined
```

This PR fixes this issue by making the exception handling statements
more precise.
2023-05-10 15:37:57 +09:00
1f4fb4d98a CI: Update codeql build. (#595) 2023-05-09 23:35:52 +09:00
869fe107af Update Django test workflow (#594)
Django 3.2 LTS will be supported until 2024-04.
2023-05-09 17:25:18 +09:00
d2c07e8a0e Update workflows (#593)
* Drop Python 3.7
* Use latest actions

Fix #591
2023-05-09 14:40:56 +09:00
1f906e66c4 Run pyupgrade --py38-plus (#590) 2023-05-09 14:10:53 +09:00
418b68dc5f Action: Use Ruff (#588) 2023-05-09 13:48:58 +09:00
c56fc43482 Start 2.2.0 development (#587) 2023-05-09 11:45:45 +09:00
df52e237b3 Add collation option (#564)
Fixes #563
2023-05-09 11:45:28 +09:00
aed1dd2632 Remove uneeded code. (#512) 2023-05-09 11:32:48 +09:00
14538b2ccd Use pkg-config instead of mysql_config (#586)
MySQL breaks mysql_config often. Use pkg-config instead.

Fixes #584
2023-05-09 10:36:25 +09:00
d0658273ac Update windows build workflow (#585)
Use MariaDB Connector/C 3.3.4
2023-05-07 10:33:42 +09:00
17c4e466d9 Update security policy. 2023-04-01 00:01:00 +09:00
58465cfa87 ER_BAD_NULL should be IntegrityError. (#579)
Fixes #535
2023-03-13 19:09:17 +09:00
b419beab9e RTD: Fix yaml 2023-01-17 17:33:50 +09:00
cc1b042d8a RTD: Use ubuntu-22.04 2023-01-17 17:26:59 +09:00
589740a67a RTD: Use Python 3.8 2023-01-17 17:24:49 +09:00
da4c072431 Add .readthedocs.yaml 2023-01-17 17:23:07 +09:00
0914c8cd77 Add CodeQL workflow for GitHub code scanning (#565)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
2022-11-10 15:09:40 +09:00
6f5fca04fe swap 3.11-dev for 3.11 in CI (#561) 2022-10-28 15:08:39 +09:00
8f0cbacba8 Raise ProgrammingError on -inf (#557) 2022-09-20 14:10:19 +09:00