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
68181ed7c2
Merge pull request #91 from jinto/patch-1
...
unicode string in argument of string raises error
2016-06-28 21:59:45 +09:00
66029d6406
Support 'database' and 'password' kwargs
2016-06-28 17:36:57 +09:00
06f2b66598
Cursor.connection is real reference
2016-06-14 18:01:46 +09:00
ee6ad1ccf4
unicode string in argument of string raises error
...
Hi, I've got 'surrogates not allowed' error when I put unicode string into stored procedure's argument.
This is pr for the issue.
cf: https://github.com/PyMySQL/mysqlclient-python/issues/90 .
2016-06-09 02:43:00 +09: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
6ff138a597
faster surrogateescape
2016-01-12 01:17:01 +09:00
ae99670a08
fixing byte strings for python 3
...
cleanup
validate python 3 version for decode
2016-01-06 21:07:06 -05:00
98bec5fb8c
fixup
2015-11-05 03:38:13 +09:00
b07937487d
Don't fetch warnings when there is next result
...
Fixes #48
2015-10-12 02:29:06 +09:00
db3fc0bba7
Fix hightlighting comment typo
2015-06-02 16:43:33 +01:00
d0f96ff213
Return in case of higher precision than expected
2015-05-06 17:32:00 +02:00
f7bb72e9ce
Prefer early return and less indention
2015-05-05 19:37:05 +02:00
c70564f813
Remove unnecessary if statement
2015-05-04 20:18:57 +02:00
77a8e4a480
Increase performance when casting dates
2015-05-04 20:18:57 +02:00
c528f503b8
Merge pull request #41 from tiwilliam/test-times
...
Add tests for times module
2015-05-05 01:07:39 +09:00
bf470a4f71
Raise ProgrammingError
properly when connection is closed
2015-05-01 20:56:16 +02:00
1670adfed2
Revert "Always convert epoch to UTC"
...
This reverts commit 8efd1d87690f525eae147779888ff144f5edf3e6.
2015-05-01 20:33:34 +02:00
5d47ff4e35
Increase MySQLdb.times
coverage to 100%
2015-05-01 19:59:35 +02:00
8efd1d8769
Always convert epoch to UTC
2015-05-01 18:26:01 +02:00
63a72f5861
connections.py use int not atoi
...
`atoi` is deprecated since python 2.0 and not in python 3. I guess this code is not being run since `_mysql.c` looks like it always defines `warning_count` anyway, but it should not sit around being python-3-incompatible.
2015-04-28 17:08:07 +01:00
d408114028
Fix SSCursor is not iterator on Python 3
2015-03-06 16:05:33 +09:00
1c818f8034
Cursor supports context manager interface
2015-02-25 11:26:39 +09:00
a5716c33e4
Remove BaseCursor.__del__
...
Fixes #22 (Uncollectable cursor on Python 3.3)
2015-02-25 03:53:21 +09:00
861a7d3a91
Don't use datetime.isoformat() when encoding
2015-02-06 21:54:59 +09:00
e78ce1f8cb
Fix some BLOBs without binary flag is not decoded.
...
Fixes #15
2015-01-05 14:41:51 +09:00
739bc9325d
fix.
2014-09-09 22:19:56 +09:00