76 Commits

Author SHA1 Message Date
62f0645376 Fix executemany with binary prefix (#605)
Fix #494
2023-05-18 17:52:38 +09:00
a2e970698f Discard results without converting them into Python objects. (#601)
Fixes #560.
2023-05-17 02:08:52 +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
1f906e66c4 Run pyupgrade --py38-plus (#590) 2023-05-09 14:10:53 +09:00
df52e237b3 Add collation option (#564)
Fixes #563
2023-05-09 11:45:28 +09:00
58465cfa87 ER_BAD_NULL should be IntegrityError. (#579)
Fixes #535
2023-03-13 19:09:17 +09:00
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
6ebc1a1972 Fix typos (#520) 2021-11-17 17:38:58 +09:00
aa28721d07 Use utf8mb4 in test_binary_prefix (#501) 2021-09-03 11:30:40 +09:00
8f1fd73dd3 multi statements can be disabled (#500) 2021-09-03 11:01:58 +09:00
af563dbf51 Use unittest.mock instead of mock (#469) 2021-01-08 16:28:06 +09:00
401ca82974 Actions: Use installed mysql instead of docker. (#462) 2020-12-11 12:30:08 +09:00
1731d27341 Fix and optimize fetching dict rows. (#458) 2020-12-08 18:35:44 +09:00
329bae79c8 Run tests in Github Actions (#457) 2020-12-07 17:39:09 +09:00
d56b0b7f8c black 20.8b1 2020-12-04 12:22:51 +09:00
0887495b53 fix DeprecationWarning in test 2020-07-02 14:20:54 +09:00
18163d7022 code cleanup and reformat (#423) 2020-01-20 19:47:22 +09:00
643220972e Add Context Manager Interface to Connection. (#413)
Fixes #400.
2019-11-29 21:15:17 +09:00
026e87f7b5 Remove py27 support from Python sources. (#394) 2019-11-28 22:04:42 +09:00
7893c5a97d Grammar fixes (#333) 2019-02-17 12:13:10 +09:00
f48a294aaa Fix dict parameter support (#324) 2019-01-19 12:55:41 +09:00
4b40c8ce05 Remove _mysql.thread_safe() (#311) 2018-12-13 16:10:58 +09:00
aca3a396c7 Remove old TIMESTAMP format for MySQL<4.1 (#308) 2018-12-12 17:51:48 +09:00
819688b630 Simplify converters (#304) 2018-12-07 13:50:05 +09:00
a33e1c3836 Format 2018-12-06 19:33:31 +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
5af8ece7ac Remove automatic warning check (#296) 2018-12-04 21:54:14 +09:00
833816ee87 Move _mysql and _mysql_exceptions into MySQLdb/ (#293) 2018-12-04 20:19:04 +09:00
9f71220b92 Fix conversion of decimals with exponent (#286) 2018-11-07 16:46:02 +09:00
9fb618806b Fix Connection.client_flag (#266) 2018-10-23 19:04:18 +09:00
68b9662918 Add Decimal converter (#267) 2018-10-19 19:51:36 +09:00
3d4d286a10 Fixed float converter (#268)
Use exponential notation always to MySQL treat it as float, not decimal.
Use enough precision for round-trip value.
2018-10-19 19:50:23 +09:00
fccd022ad7 Use pytest instead of py.test (#240)
http://blog.pytest.org/2016/whats-new-in-pytest-30/
2018-05-18 14:52:52 +09:00
07f4739d97 Spelling and grammar fixes 2018-05-15 22:04:10 +02:00
0ce8ed205d Use pytest instead of py.test per upstream recommendation, #dropthedot
http://blog.pytest.org/2016/whats-new-in-pytest-30/
https://twitter.com/hashtag/dropthedot
2018-05-15 22:00:54 +02:00
73ccdcdddf Fix decoding tiny/medium/long blobs (#215) 2017-12-14 17:30:29 +09:00
354dcb59e2 Allow bulk insert which no space around VALUES (#179) 2017-06-15 09:06:46 +09:00
2c0485f246 travis: use sudo-enabled trusty for now
Random fail happens on container based image.
2017-02-19 20:52:03 +09:00
cbc991ec2c travis: fix erros
* set mysql password
* add mysql to services
2017-02-19 20:40:16 +09:00
cba486e043 Use _binary prefix for bytes/bytearray parameters (#140)
- Based on #106 but now disabled by default
- Can be enabled via 'binary_prefix' connection parameter
- Added unit tests to verify behaviour
2017-02-10 20:36:41 +09:00
d16ced645f Add test for PyMySQL/mysqlclient-python#137 2017-01-04 21:34:02 +09:00
db1bb2ccb1 Spelling fixes (#112) 2016-09-12 06:31:28 +09:00
7431683307 Merge pull request #101 from vtermanis/warning_args
Warning propagation improvements
2016-07-28 18:59:00 +09:00
c7d2168939 add surrogate escape for callproc and test case for that (#104) 2016-07-28 18:49:52 +09:00
ad935e4ba8 Warning propagation improvements 2016-07-26 18:43:35 +01:00
6079889e51 Use assertEqual instead of deprecated assertEquals 2016-05-16 08:12:21 +03:00
57dd34dc10 fixup 2016-05-11 18:21:49 +09:00
49e401b3bc Port executemany() implementation from PyMySQL 2016-05-11 12:35:00 +09:00
98bec5fb8c fixup 2015-11-05 03:38:13 +09:00