437 Commits

Author SHA1 Message Date
bf77dd0633 Update FIELD_TYPEs (#309) 2018-12-12 20:25:12 +09:00
aca3a396c7 Remove old TIMESTAMP format for MySQL<4.1 (#308) 2018-12-12 17:51:48 +09:00
80278a266e Update ER and CR (#307) 2018-12-12 16:52:03 +09:00
9f31f592f2 Removed MySQLdb.constants.REFRESH 2018-12-11 16:19:47 +09:00
3bea8cd8dd Faster string and int decoder (#305) 2018-12-11 11:50:42 +09:00
ae6b108b56 Remove HAVE_MYSQL_OPT_TIMEOUTS
Drop MySQL<5.1.12 support
2018-12-10 19:08:19 +09:00
e48e393e68 Update compat 2018-12-07 13:51:17 +09:00
819688b630 Simplify converters (#304) 2018-12-07 13:50:05 +09:00
5e8eeac47f Stop using surrogate escape (#302)
It was workaround for `bytes %`.
Since we dropped Python 3.4 support, we can use just `bytes %` now.
2018-12-07 02:39:33 +09:00
a33e1c3836 Format 2018-12-06 19:33:31 +09:00
c754b25080 Support field name other than UTF-8 (#301) 2018-12-06 02:39:25 +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
41581254f8 Fix a reference leak in store_result and use_result if result object initialization fails. (#298) 2018-12-05 12:31:33 +09:00
c2e5ff7bd3 Support utf8mb3 2018-12-04 22:25:57 +09:00
20ee2e307b Fix warnings 2018-12-04 22:06:08 +09:00
5af8ece7ac Remove automatic warning check (#296) 2018-12-04 21:54:14 +09:00
16915a0353 Remove fileno, escape_sequence, and escape_dict from Connection (#297) 2018-12-04 21:50:30 +09:00
de44ff07e7 Remove waiter option 2018-12-04 20:59:16 +09:00
c64915b1e5 Remove context interface from Connector (#295) 2018-12-04 20:53:53 +09:00
0d7fcc269c Remove errorhandler (#294) 2018-12-04 20:36:04 +09:00
833816ee87 Move _mysql and _mysql_exceptions into MySQLdb/ (#293) 2018-12-04 20:19:04 +09:00
bd62c5d5d7 cursor: Remove deprecated methods and classes 2018-12-04 19:36:33 +09:00
9f71220b92 Fix conversion of decimals with exponent (#286) 2018-11-07 16:46:02 +09:00
21170a7639 Deprecate waiter (#285) 2018-11-05 21:28:05 +09:00
e7fddaea24 Clear cursor._query before query() (#283) 2018-11-05 20:48:43 +09:00
09018914e1 Use shorter format for float converter (#273) 2018-10-23 18:38:50 +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
3de469db63 1.3.13 2018-06-27 20:27:54 +09:00
07f4739d97 Spelling and grammar fixes 2018-05-15 22:04:10 +02:00
f2f94dcdde Update cursors.py 2018-03-15 18:44:22 +09:00
1f8bd5361e Reduce callproc roundtrip time
- Make only one single call to SET variables used as procedure parameters
2018-01-20 17:40:38 +00:00
73ccdcdddf Fix decoding tiny/medium/long blobs (#215) 2017-12-14 17:30:29 +09:00
bab17ed504 remove extra parameter (#201)
This produced the error `TypeError: _tuple_literal() missing 1 required positional argument: 'd'` on line 316.
2017-09-02 01:39:41 +09:00
ca4317a6b5 Fix encoding tuple argument (#155)
Since Connections.encoders is broken by design.
Tuple and list is escaped directly in `Connection.literal()`.
Removed tuple and list from converters mapping.

Fixes #145
2017-08-30 18:49:02 +09:00
e39df07f29 Fix docstring for use_unicode type 2017-08-29 18:16:15 +09:00
354dcb59e2 Allow bulk insert which no space around VALUES (#179) 2017-06-15 09:06:46 +09:00
f96cb44ef1 Add NEWDECIMAL to the NUMBER DBAPISet (#167) 2017-04-30 02:24:09 +09:00
2b6123e236 Allow semicolon at the end of bulk insert query 2017-03-03 01:19:53 +09:00
8fcd2c5b7d Use surrogateescape normally on Python 3.6 2017-02-20 17:12:47 +09:00
118861f8cb deprecate Connection.__enter__ 2017-02-20 17:02:20 +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
490080ac79 Revert "Use _binary prefix for bytes/bytearray parameters" 2016-09-30 21:31:34 +09:00
dd9929c0e7 Update error constants (#113)
* Add CR and ER main methods for updating from connector-c headers
* Sync CR and ER with MySQL/MariaDB connector C 6.1.6/2.3.1
2016-09-12 06:34:25 +09:00
db1bb2ccb1 Spelling fixes (#112) 2016-09-12 06:31:28 +09:00
2617620e27 Use _binary prefix for bytes/bytearray parameters (#106) 2016-09-11 19:55:34 +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