365 Commits

Author SHA1 Message Date
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
5abcad013e Fix calling dict.iteritems(). 2014-09-09 09:47:12 +09:00
7e15cf8617 Add waiter to MySQLdb.Connection. 2014-07-03 20:52:53 +09:00
4ace89c956 Merge remote-tracking branch 'upstream/pr/64' 2014-04-28 14:35:21 +09:00
61a5acd39b fix camelCase. Move abs() 2014-04-22 13:00:29 +03:00
21decd80ee Fix wrong sign with negative zero hour timediff. Fixes #63 2014-04-22 01:48:38 +03:00
56a5f1afa1 Add comment. 2014-04-18 23:34:14 +09:00
b881072414 Remove unused import 2014-04-18 23:26:39 +09:00
e7545c7c40 refactoring. 2014-04-18 23:25:01 +09:00
312f46d6ca use_unicode=True by default on Python 3. 2014-04-18 12:17:34 +09:00
f188e0f9e4 Fix some tests. 2014-04-18 11:29:10 +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
182011eb18 Merge branch 'remove_MySQLdb/release.py' into py3.3support 2014-04-16 10:55:35 -07:00
4d61517963 Remove MySQLdb/release.py from git
because it's generated from metadata.cfg

and because I keep getting annoying diffs because of newline differences
-- e.g.:

    $ git diff
    diff --git a/MySQLdb/release.py b/MySQLdb/release.py
    index 5c30a6c..4ce9412 100644
    --- a/MySQLdb/release.py
    +++ b/MySQLdb/release.py
    @@ -1,4 +1,4 @@
    -
    -__author__ = "Andy Dustman <farcepest@gmail.com>"
    -version_info = (1,2,4,'final',1)
    -__version__ = "1.2.4"
    +
    +__author__ = "Andy Dustman <farcepest@gmail.com>"
    +version_info = (1,2,4,'final',1)
    +__version__ = "1.2.4"
2014-04-15 10:35:18 -07:00
b9aa0530a8 Improved support for Python 3. 2014-01-09 18:03:53 +01:00
95ae115c7d Merge pull request #32 from methane/autocommit
More precise get_autocommit based on server_status.
2013-11-21 11:57:32 -08: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
44f8b4d2b9 Merge pull request #36 from Multiposting/master
Fix the conversion of list or tuple args to SQL.
2013-11-21 11:52:42 -08:00
fb1c79d85a microsecond-bug-fix
When the MySQL Datetime Fraction is less than 6, microseconds set
incorrectly. For example, you set the field, Datetime(3). Then this
library read the time `2013-11-07 10:27:35.705` as `2013-11-08
10:27:35.000705`.
2013-11-08 12:18:55 +09:00
100485f627 microsecond-bug-fix for datetime.datetime 2013-11-08 11:51:31 +09: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
2204283605 Remove unused variable. 2013-10-02 02:17:48 +09:00
3dbf035fa5 More precise get_autocommit based on server_status. 2013-10-02 02:10:02 +09:00
c8b2744ea2 Merge pull request #12 from KLab/autocommit_on
Support keyword argument to initially autocommit=on
2013-08-18 14:22:40 -07:00
0226f1a727 Fix problem with return None if Datetime field contained microsecond (Issue #24) 2013-07-15 18:11:07 +03:00
f064692a36 'BEGIN' on __enter__ if autocommit is enabled. 2013-05-22 22:33:20 +09:00
470eb56c4d Fix typo. 2013-05-21 13:32:23 +09:00
c1b8e8a047 autocommit=None means using server default. 2013-05-21 12:09:55 +09:00
797d9c3029 Support autocommit=True for constructor argument. 2013-01-05 09:34:59 +09:00
52894fd137 remove unused lines. 2013-01-05 09:19:43 +09:00
ad119309fc Version bump 2013-01-01 17:14:08 -05: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
c9b282f8b5 Version bump. 2012-10-11 10:05:28 -04:00
a34cd2a9a0 Merge remote-tracking branch 'remotes/evax/utf8mb4' into MySQLdb-1.2 2012-10-08 14:02:42 -04:00
030d175754 Use db.unicode_literal.charset in cursors.py 2012-10-08 19:16:01 +02:00
0f8d86cc87 Prep for 1.2.4b4 release 2012-10-08 11:47:09 -04:00
9eb906e8a7 Map utf8mb4 to utf8 in python 2012-10-08 17:25:14 +02:00
7d4993a53c Workaround for recommended MySQL 5.5 utf8mb4 character set, which is not recognized by Python yet. 2012-10-05 14:01:51 -04:00
7a846cf5e3 Allow pip install from git
Merged with modifications from a815269010
2012-10-04 13:34:39 -04:00
0164ffeb25 Let's not forget history... 2012-10-03 14:11:05 -04:00