11 Commits

Author SHA1 Message Date
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