Inada Naoki
c650aa0d4f
CI: Use MariaDB ( #611 )
2023-05-21 02:03:59 +09:00
Inada Naoki
d48c8524cb
CI: Fix Windows wheel build workflow
2023-05-19 13:44:56 +09:00
Inada Naoki
640fe6de2a
Release v2.2.0rc1 ( #607 )
v2.2.0rc1
2023-05-19 13:20:33 +09:00
Inada Naoki
5dfab4d9c5
CI: Update Django test workflow ( #610 )
2023-05-19 03:04:56 +09:00
Matthias Schoettle
398208f8c8
Fix mariadbclient SSL support ( #609 )
2023-05-19 02:11:13 +09:00
Inada Naoki
ba85984505
Update README.md
2023-05-18 20:21:11 +09:00
Inada Naoki
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
Inada Naoki
44d0f7a148
CI: Fix Django test ( #606 )
2023-05-18 18:02:28 +09:00
Inada Naoki
62f0645376
Fix executemany with binary prefix ( #605 )
...
Fix #494
2023-05-18 17:52:38 +09:00
Inada Naoki
3d6b8c9b7c
Release GIL during result.discard() ( #604 )
2023-05-18 17:19:10 +09:00
Inada Naoki
3517eb77b7
Fix sphinx warnings ( #602 )
...
Fix #539
2023-05-17 10:58:18 +09:00
Inada Naoki
a2e970698f
Discard results without converting them into Python objects. ( #601 )
...
Fixes #560 .
2023-05-17 02:08:52 +09:00
Inada Naoki
0220f427a9
Use src-layout. ( #600 )
2023-05-15 23:50:10 +09:00
Teodor Moroz
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
Steve Teahan
9953e509c4
Add Cursor.mogrify(). ( #477 )
...
Implements #476
Co-authored-by: Inada Naoki <songofacandy@gmail.com >
2023-05-15 14:17:21 +09:00
Inada Naoki
89c1e0f3c6
Use pyproject.toml ( #598 )
2023-05-15 13:22:35 +09:00
Inada Naoki
cbd894c3b1
CI: Fix django workflow ( #597 )
2023-05-10 17:15:22 +09:00
piglei
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
Inada Naoki
1f4fb4d98a
CI: Update codeql build. ( #595 )
2023-05-09 23:35:52 +09:00
Inada Naoki
869fe107af
Update Django test workflow ( #594 )
...
Django 3.2 LTS will be supported until 2024-04.
2023-05-09 17:25:18 +09:00
Inada Naoki
d2c07e8a0e
Update workflows ( #593 )
...
* Drop Python 3.7
* Use latest actions
Fix #591
2023-05-09 14:40:56 +09:00
Inada Naoki
1f906e66c4
Run pyupgrade --py38-plus ( #590 )
2023-05-09 14:10:53 +09:00
Inada Naoki
418b68dc5f
Action: Use Ruff ( #588 )
2023-05-09 13:48:58 +09:00
Inada Naoki
c56fc43482
Start 2.2.0 development ( #587 )
2023-05-09 11:45:45 +09:00
Vince Salvino
df52e237b3
Add collation option ( #564 )
...
Fixes #563
2023-05-09 11:45:28 +09:00
Inada Naoki
aed1dd2632
Remove uneeded code. ( #512 )
2023-05-09 11:32:48 +09:00
Inada Naoki
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
Inada Naoki
d0658273ac
Update windows build workflow ( #585 )
...
Use MariaDB Connector/C 3.3.4
2023-05-07 10:33:42 +09:00
Inada Naoki
17c4e466d9
Update security policy.
2023-04-01 00:01:00 +09:00
Inada Naoki
58465cfa87
ER_BAD_NULL should be IntegrityError. ( #579 )
...
Fixes #535
2023-03-13 19:09:17 +09:00
Inada Naoki
b419beab9e
RTD: Fix yaml
2023-01-17 17:33:50 +09:00
Inada Naoki
cc1b042d8a
RTD: Use ubuntu-22.04
2023-01-17 17:26:59 +09:00
Inada Naoki
589740a67a
RTD: Use Python 3.8
2023-01-17 17:24:49 +09:00
Inada Naoki
da4c072431
Add .readthedocs.yaml
2023-01-17 17:23:07 +09:00
lgtm-com[bot]
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
Josh
6f5fca04fe
swap 3.11-dev for 3.11 in CI ( #561 )
2022-10-28 15:08:39 +09:00
Inada Naoki
8f0cbacba8
Raise ProgrammingError on -inf ( #557 )
2022-09-20 14:10:19 +09:00
gopackgo90
d288d3e224
Update python_requires to 3.7+ ( #543 )
2022-09-19 16:23:55 +09:00
Tim Gates
f5a2f3dd28
docs: fix simple typo, portible -> portable ( #547 )
...
There is a small typo in tests/dbapi20.py.
Should read `portable` rather than `portible`.
2022-08-05 11:40:27 +09:00
Inada Naoki
dac24e7b05
Update metadata
2022-06-22 18:08:05 +09:00
Inada Naoki
684dcbf065
Actions: Drop Python 3.6 and add 3.11-dev ( #542 )
2022-06-22 18:07:11 +09:00
Inada Naoki
78caa9ed05
v2.1.1
v2.1.1
2022-06-22 10:22:08 +09:00
Inada Naoki
aafdec84cf
Action: Update Windows wheel build ( #541 )
2022-06-22 09:07:56 +09:00
Llewyllen
6979a47f2e
Fix docstring for _mysql.connect ( #540 )
2022-06-02 12:57:40 +09:00
Inada Naoki
c1c812a1df
Fix out of range bug ( #538 )
2022-04-17 10:21:21 +09:00
Inada Naoki
9729618950
Create SECURITY.md
2022-04-15 20:18:03 +09:00
Inada Naoki
2316313fc6
Add __module__ attributes to exception classes. ( #523 )
2022-01-10 10:44:49 +09:00
Inada Naoki
5340191feb
2.1.0
v2.1.0
2021-11-17 17:52:46 +09:00
Kian Meng Ang
6ebc1a1972
Fix typos ( #520 )
2021-11-17 17:38:58 +09:00
Inada Naoki
8b920774f2
Action: Run Django tests ( #519 )
2021-10-20 16:34:39 +09:00