026e87f7b5
Remove py27 support from Python sources. ( #394 )
2019-11-28 22:04:42 +09:00
74c16e7afa
Remove unused converters ( #315 )
2018-12-14 17:24:15 +09:00
8ad1525c3f
Raise ProgrammingError for nan and inf ( #314 )
...
* Raise ProgrammingError when inf or nan is passed
Fixes #246
* Rename _mysql_exceptions -> _exceptions
2018-12-14 16:46:30 +09:00
fe8032430c
Reimplement JSON support ( #310 )
2018-12-13 12:41:53 +09:00
aca3a396c7
Remove old TIMESTAMP format for MySQL<4.1 ( #308 )
2018-12-12 17:51:48 +09:00
3bea8cd8dd
Faster string and int decoder ( #305 )
2018-12-11 11:50:42 +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
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
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
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
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
e7545c7c40
refactoring.
2014-04-18 23:25:01 +09:00
382fb9f9b3
Random fixes.
2014-04-17 22:24:46 +09:00
87d1145c0d
Fix the conversion of list or tuple args to a SQL.
...
When there is one element on the list, the generated SQL was
(1,) (python notation of a single element tuple, which is not
valid in SQL.
2013-11-04 16:17:57 +01:00
49f8ab9689
Fix some broken types module references.
2012-11-02 11:29:59 -04:00
369810dff7
PyPy fixes, and probably some reference issues for CPython too.
...
Derived from a patch at https://bitbucket.org/pypy/compatibility/wiki/edit/mysql-python
2012-10-17 18:30:19 -04:00
7a846cf5e3
Allow pip install from git
...
Merged with modifications from a815269010
2012-10-04 13:34:39 -04:00