Commit Graph

57 Commits

Author SHA1 Message Date
Ville Skyttä
7893c5a97d Grammar fixes (#333) 2019-02-17 12:13:10 +09:00
Inada Naoki
f48a294aaa Fix dict parameter support (#324) 2019-01-19 12:55:41 +09:00
INADA Naoki
4b40c8ce05 Remove _mysql.thread_safe() (#311) 2018-12-13 16:10:58 +09:00
INADA Naoki
aca3a396c7 Remove old TIMESTAMP format for MySQL<4.1 (#308) 2018-12-12 17:51:48 +09:00
INADA Naoki
819688b630 Simplify converters (#304) 2018-12-07 13:50:05 +09:00
Inada Naoki
a33e1c3836 Format 2018-12-06 19:33:31 +09:00
Benjamin Peterson
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
Inada Naoki
3bdcb26832 Expand TABs 2018-12-05 18:46:29 +09:00
INADA Naoki
5af8ece7ac Remove automatic warning check (#296) 2018-12-04 21:54:14 +09:00
INADA Naoki
833816ee87 Move _mysql and _mysql_exceptions into MySQLdb/ (#293) 2018-12-04 20:19:04 +09:00
Sergey Fedoseev
9f71220b92 Fix conversion of decimals with exponent (#286) 2018-11-07 16:46:02 +09:00
Sergey Fedoseev
9fb618806b Fix Connection.client_flag (#266) 2018-10-23 19:04:18 +09:00
Sergey Fedoseev
68b9662918 Add Decimal converter (#267) 2018-10-19 19:51:36 +09:00
Sergey Fedoseev
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
INADA Naoki
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
Ville Skyttä
07f4739d97 Spelling and grammar fixes 2018-05-15 22:04:10 +02:00
Ville Skyttä
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
kilroy42
73ccdcdddf Fix decoding tiny/medium/long blobs (#215) 2017-12-14 17:30:29 +09:00
INADA Naoki
354dcb59e2 Allow bulk insert which no space around VALUES (#179) 2017-06-15 09:06:46 +09:00
INADA Naoki
2c0485f246 travis: use sudo-enabled trusty for now
Random fail happens on container based image.
2017-02-19 20:52:03 +09:00
INADA Naoki
cbc991ec2c travis: fix erros
* set mysql password
* add mysql to services
2017-02-19 20:40:16 +09:00
Vilnis Termanis
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
INADA Naoki
d16ced645f Add test for PyMySQL/mysqlclient-python#137 2017-01-04 21:34:02 +09:00
Ville Skyttä
db1bb2ccb1 Spelling fixes (#112) 2016-09-12 06:31:28 +09:00
INADA Naoki
7431683307 Merge pull request #101 from vtermanis/warning_args
Warning propagation improvements
2016-07-28 18:59:00 +09:00
Woo-Jing, Seok
c7d2168939 add surrogate escape for callproc and test case for that (#104) 2016-07-28 18:49:52 +09:00
Vilnis Termanis
ad935e4ba8 Warning propagation improvements 2016-07-26 18:43:35 +01:00
Ville Skyttä
6079889e51 Use assertEqual instead of deprecated assertEquals 2016-05-16 08:12:21 +03:00
INADA Naoki
57dd34dc10 fixup 2016-05-11 18:21:49 +09:00
INADA Naoki
49e401b3bc Port executemany() implementation from PyMySQL 2016-05-11 12:35:00 +09:00
INADA Naoki
98bec5fb8c fixup 2015-11-05 03:38:13 +09:00
Philipp Spitzer
91054f07cb Replaced assertGreater with assertNotEqual so that the code runs with Python 2.6 too. 2015-07-20 23:32:14 +02:00
Philipp Spitzer
670cede43b Added test for MULTIPOLYGON (that fails in 1742946) 2015-07-20 23:08:40 +02:00
INADA Naoki
cac3b615e7 travis: mysql --print-defaults 2015-06-03 01:25:09 +09:00
William Tisäter
d0f96ff213 Return in case of higher precision than expected 2015-05-06 17:32:00 +02:00
William Tisäter
7397b0e93c Fix non-valid MySQL dates 2015-05-04 15:27:31 +02:00
William Tisäter
f9cc9f8b57 Mock localtime with gmtime for epoch tests 2015-05-03 10:51:28 +02:00
William Tisäter
5d47ff4e35 Increase MySQLdb.times coverage to 100% 2015-05-01 19:59:35 +02:00
William Tisäter
402016ff03 Drop debug logging from times test 2015-05-01 18:29:55 +02:00
William Tisäter
f9faf720a3 Set assert time in UTC 2015-05-01 16:45:07 +02:00
William Tisäter
2d5db2e3e0 Add tests for times module 2015-05-01 13:51:29 +02:00
INADA Naoki
04896fc6f5 Treat BIT as binary type. 2015-04-09 03:33:33 +09:00
INADA Naoki
06905e5e6f Add test for BIT type 2015-04-08 23:02:34 +09:00
INADA Naoki
0dfce06514 Add test for _mysql.escape_string() 2015-02-24 14:51:34 +09:00
INADA Naoki
7a301a2c45 Exception raised from _mysql should be reraise as is. 2014-09-09 22:18:39 +09:00
INADA Naoki
67cf0a0897 StandardError is removed from Python 3 2014-04-18 12:06:39 +09:00
INADA Naoki
67ecdc82a6 Fix calling Binary() with string. 2014-04-18 12:04:04 +09:00
INADA Naoki
4a6dde81a3 Fix multiply by float. 2014-04-18 11:54:03 +09:00
INADA Naoki
f188e0f9e4 Fix some tests. 2014-04-18 11:29:10 +09:00
Marc Abramowitz
9440a0d4df Handle types in a Python 3 friendly way 2014-04-16 14:31:10 -07:00