026e87f7b5
Remove py27 support from Python sources. ( #394 )
2019-11-28 22:04:42 +09:00
b3e775a780
fix Cursor.executemany created many circular references ( #375 )
2019-08-08 18:55:21 +09:00
f683ee7826
Fix typo in docstring and minor formatting ( #336 )
2019-03-03 12:13:38 +09:00
1f6e18d345
Add some garbage for Django 1.11 compatibility ( #327 )
...
Django touched private area of this library.
Removing unused variables broke Django.
While Django 2.0 fixed it, Django 1.11 doesn't fix it
because it is in security-only fix mode.
So add unused variables for Django 1.11 compatibility.
They will be removed in next minor release.
Fix #303 , #306
2019-02-07 18:05:40 +09:00
f48a294aaa
Fix dict parameter support ( #324 )
2019-01-19 12:55:41 +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
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
5af8ece7ac
Remove automatic warning check ( #296 )
2018-12-04 21:54:14 +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
e7fddaea24
Clear cursor._query before query() ( #283 )
2018-11-05 20:48:43 +09: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
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
354dcb59e2
Allow bulk insert which no space around VALUES
( #179 )
2017-06-15 09:06:46 +09:00
2b6123e236
Allow semicolon at the end of bulk insert query
2017-03-03 01:19:53 +09:00
db1bb2ccb1
Spelling fixes ( #112 )
2016-09-12 06:31:28 +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
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
bf470a4f71
Raise ProgrammingError
properly when connection is closed
2015-05-01 20:56:16 +02: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
739bc9325d
fix.
2014-09-09 22:19:56 +09:00
5abcad013e
Fix calling dict.iteritems().
2014-09-09 09:47:12 +09:00
56a5f1afa1
Add comment.
2014-04-18 23:34:14 +09:00
c66b43cc22
Connection.literal() always returns str
instance.
2014-04-17 22:36:01 +09:00
382fb9f9b3
Random fixes.
2014-04-17 22:24:46 +09:00
9440a0d4df
Handle types in a Python 3 friendly way
2014-04-16 14:31:10 -07:00
b9aa0530a8
Improved support for Python 3.
2014-01-09 18:03:53 +01:00
9b0b59f1bb
Merge pull request #34 from tyzhnenko/test-and-fix-issue-33
...
Fix cut off SQL query when its contained `))`
2013-11-21 11:55:10 -08:00
8096d8c053
Also fix executemany().
2013-11-05 11:34:43 +01:00
8bef3359fb
Syntax fix for python 2.5 support.
2013-11-05 11:01:22 +01: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
052955e093
Fix cut off SQL query when its contained ))
, edit insert_values
...
regexp. Fixes issue #33 .
2013-10-07 12:35:13 +03:00
030d175754
Use db.unicode_literal.charset in cursors.py
2012-10-08 19:16:01 +02:00
9eb906e8a7
Map utf8mb4 to utf8 in python
2012-10-08 17:25:14 +02:00
7a846cf5e3
Allow pip install from git
...
Merged with modifications from a815269010
2012-10-04 13:34:39 -04:00