Commit Graph

696 Commits

Author SHA1 Message Date
INADA Naoki
4154756541 Merge pull request #56 from methane/fix/51
Check after mysql_store_result propery
2015-10-11 20:20:07 +09:00
INADA Naoki
8c090157b7 Check after mysql_store_result propery
fixes #51
2015-10-11 20:09:17 +09:00
INADA Naoki
1383f3ff42 Add GPL v2 LICENSE file 2015-10-11 16:42:08 +09:00
INADA Naoki
568cf52943 Merge pull request #32 from PyMySQL/library-args
Pass options in `mysql_config --libs` to `extra_linker_args`
2015-10-11 16:33:23 +09:00
INADA Naoki
61c6b569e3 Merge pull request #49 from phispi/master
Added test for MULTIPOLYGON (that fails in 1742946)
2015-09-07 17:26:43 +09:00
Philipp Spitzer
d4ef92d43a Adding FIELD_TYPE_GEOMETRY as binary type fixes the issue of the UnicodeDecodeError and makes geometry types usable. 2015-07-21 21:50:46 +02:00
Philipp Spitzer
91054f07cb Replaced assertGreater with assertNotEqual so that the code runs with Python 2.6 too. 2015-07-20 23:32:14 +02:00
Philipp Spitzer
670cede43b Added test for MULTIPOLYGON (that fails in 1742946) 2015-07-20 23:08:40 +02:00
INADA Naoki
174294641e Merge pull request #47 from MahdiZareie/patch-1
add install command for python3-dev
2015-06-14 10:53:12 +09:00
MahdiZareie
4f9c5051ff add install command for python3-dev
adding require commands for installing python3 development package on Ubuntu and CentOs .
2015-06-14 03:11:18 +04:30
INADA Naoki
665f188c20 Merge pull request #46 from methane/fix/travis
Fix travis build
2015-06-03 02:31:46 +09:00
INADA Naoki
be416d0c21 travis: cache: pip 2015-06-03 01:42:18 +09:00
INADA Naoki
13ddae4153 tox: Pass TESTDB envvar to test 2015-06-03 01:37:26 +09:00
INADA Naoki
cac3b615e7 travis: mysql --print-defaults 2015-06-03 01:25:09 +09:00
INADA Naoki
b9d5320816 Merge pull request #45 from graingert/patch-2
Fix hightlighting comment typo
2015-06-03 01:05:53 +09:00
Thomas Grainger
db3fc0bba7 Fix hightlighting comment typo 2015-06-02 16:43:33 +01:00
INADA Naoki
1953e1652d Merge pull request #43 from tiwilliam/date-perf
Increase performance when casting dates
2015-05-07 13:34:25 +09:00
William Tisäter
d0f96ff213 Return in case of higher precision than expected 2015-05-06 17:32:00 +02:00
William Tisäter
f7bb72e9ce Prefer early return and less indention 2015-05-05 19:37:05 +02:00
William Tisäter
c70564f813 Remove unnecessary if statement 2015-05-04 20:18:57 +02:00
William Tisäter
77a8e4a480 Increase performance when casting dates 2015-05-04 20:18:57 +02:00
INADA Naoki
c528f503b8 Merge pull request #41 from tiwilliam/test-times
Add tests for times module
2015-05-05 01:07:39 +09:00
William Tisäter
7397b0e93c Fix non-valid MySQL dates 2015-05-04 15:27:31 +02:00
William Tisäter
f9cc9f8b57 Mock localtime with gmtime for epoch tests 2015-05-03 10:51:28 +02:00
INADA Naoki
641a2eb5a0 Merge pull request #42 from tiwilliam/cursor-closed-exception
Raise `ProgrammingError` properly when connection is closed
2015-05-03 00:21:09 +09:00
William Tisäter
bf470a4f71 Raise ProgrammingError properly when connection is closed 2015-05-01 20:56:16 +02:00
William Tisäter
1670adfed2 Revert "Always convert epoch to UTC"
This reverts commit 8efd1d8769.
2015-05-01 20:33:34 +02:00
William Tisäter
5d47ff4e35 Increase MySQLdb.times coverage to 100% 2015-05-01 19:59:35 +02:00
William Tisäter
50c0a3b798 Add coverage report 2015-05-01 19:59:09 +02:00
William Tisäter
402016ff03 Drop debug logging from times test 2015-05-01 18:29:55 +02:00
William Tisäter
8efd1d8769 Always convert epoch to UTC 2015-05-01 18:26:01 +02:00
William Tisäter
f9faf720a3 Set assert time in UTC 2015-05-01 16:45:07 +02:00
William Tisäter
66dd2d1511 Use pytest instead of nose 2015-05-01 15:49:57 +02:00
William Tisäter
2d5db2e3e0 Add tests for times module 2015-05-01 13:51:29 +02:00
INADA Naoki
d768ef00e0 Merge pull request #40 from adamchainz/patch-1
connections.py use int not atoi
2015-04-29 03:34:50 +09:00
Adam Chainz
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
INADA Naoki
0aa9a5390e Merge pull request #39 from PyMySQL/fix/bit-type
Fix UnicodeError when fetching BIT value on Python 3
2015-04-09 03:36:38 +09:00
INADA Naoki
04896fc6f5 Treat BIT as binary type. 2015-04-09 03:33:33 +09:00
INADA Naoki
06905e5e6f Add test for BIT type 2015-04-08 23:02:34 +09:00
INADA Naoki
375508bd10 Merge pull request #34 from graingert/patch-1
Fix grammar in readme
2015-03-18 02:05:04 +09:00
Thomas Grainger
23653dcc28 Fix grammar in readme 2015-03-17 16:42:49 +00:00
INADA Naoki
c78360c769 Merge pull request #33 from pilou-/master
missing default value: raise IntegrityError
2015-03-16 14:11:17 +09:00
Pierre-Louis Bonicoli
57348117f3 missing default value: raise IntegrityError
instead of OperationalError

Follow Python DB API 2.0:
http://legacy.python.org/dev/peps/pep-0249/#integrityerror

Initially reported here:
https://sourceforge.net/p/mysql-python/bugs/336/
2015-03-16 02:03:09 +01:00
INADA Naoki
009f1579c5 Update INSTALL doc 2015-03-13 03:08:30 +09:00
INADA Naoki
0d3f3644df Pass ldflags to extra_link_args
mysql_config may produce link args other than -L and -l.
2015-03-13 02:58:35 +09:00
INADA Naoki
072a6cdb22 README: Add how to install/build 2015-03-10 21:45:57 +09:00
INADA Naoki
d431ac95ac Merge pull request #28 from PyMySQL/fix/py3-iter
Fix SSCursor is not iterator on Python 3
2015-03-06 16:14:11 +09:00
INADA Naoki
d408114028 Fix SSCursor is not iterator on Python 3 2015-03-06 16:05:33 +09:00
INADA Naoki
acadc9cd5f 1.3.6 1.3.6 2015-02-25 11:44:52 +09:00
INADA Naoki
bc6a2ed69d Update HISTORY 2015-02-25 11:42:06 +09:00