Commit Graph

97 Commits

Author SHA1 Message Date
adustman
c12e7cca7e Force HAVE_OPENSSL if the client library is 5.5 or newer. Fixes #3535584. 2012-09-07 17:09:13 +00:00
adustman
e6d24c358d Fix: Error is not checked if mysql_store_result returns NULL (#3546166) 2012-09-07 16:53:15 +00:00
adustman
11ade40463 Windows build fixes. 2012-09-05 00:38:57 +00:00
kylev
1a728edd49 Unpack kill argument into an unsigned long correctly.
SF bug #2902635
2009-12-08 00:17:13 +00:00
kylev
29b884d0cc Defer adding references until after all our C calls so we can avoid having
to decrement them if we bail out early.

Fixes bug 2811033.
2009-07-24 00:18:07 +00:00
adustman
f19386dd83 2009-03-30 23:01:58 +00:00
kylev
7d57743ff4 Fix bug 1808476 for OSX compilation, ported from trunk. 2009-02-24 02:48:29 +00:00
kylev
e9c57bd414 don't leak special-case tuples (present in unicode modes) 2009-02-23 23:39:00 +00:00
adustman
0340376f05 Revert previous reconnect patches and just handle it
with ping([reconnect]).
2007-02-10 19:03:18 +00:00
adustman
e60e46cab1 Add connection.autoreconnect() (variant of bug #1574825) 2007-02-10 04:37:15 +00:00
adustman
b56eedab05 reconnect option for connect (bug #1550388).
Enjoy your toes while they last.
2007-02-10 04:16:53 +00:00
adustman
cfd4a94682 Fix for Python 2.5.
Added a unit test for single character columns.

Updated download URL.
2006-10-27 23:33:35 +00:00
adustman
1699cc8eb1 Metadata updates, 1.2.2b2 2006-10-13 22:12:34 +00:00
adustman
1044fea0ff Use CP/M-style switch prefixes (/D instead of -D) on Windows. 2006-08-30 04:04:42 +00:00
adustman
9079297c4a Windows MySQL has a different configuration file (config-win.h)
for inexplicable reasons. (Bug 1548032)
2006-08-30 03:01:17 +00:00
adustman
94506c4e27 Version 1.2.2b1.
Raise IntegrityError for a couple types of relatively new errors.
(Bug 1327679)

Add BIT column support. (Bug 1468725)

Return BINARY columns as normal strings, not arrays. (Bug 1495765)

Add support for a new VARCHAR type; behaves like other CHAR types.

Defer issuing warnings when using SSCursors. (Bug 1495782)

Do not try to encode query strings unless they are unicode instances.
(Bug 1521274)

Fix problem with callproc() when it is used before execute() (which is
legal). (Bug 1541124)

Fix formatting of datetime.timedelta values. (Bug 1527801)

Fix connect_timeout documentation bug. (Bug 1523883)
2006-08-27 18:02:48 +00:00
adustman
8cd67c1e36 Remove conditionals for registering server_start and server_end.
Not needed since the code itself is conditional on client version.
2006-04-05 17:56:36 +00:00
adustman
3c3ef08720 Added a bunch of new error codes to MySQLdb.constants.ER (complete for
MySQL-5.0).

Mapped some new error codes to DataError, which has always existed,
but never had anything mapped to it.

Cleaned set_character_set() a bit.

Added new connection option sql_mode and correspond set_sql_mode()
method.
2006-03-06 05:28:05 +00:00
adustman
5a96a76eb0 * Added set_character_set(charset) method to database connections
* Added get_character_set_info() method to database connections

* Added charset option to database connections

* Updated docs, added FAQ

* 1.2.1c6
2006-03-03 04:09:21 +00:00
adustman
718a02ea0e Derive all version information from metadata.cfg 2006-02-28 17:16:50 +00:00
adustman
854f8e904a Translate some additional error codes 2006-02-27 05:31:14 +00:00
adustman
6cebc27929 Include my_config.h so that SSL support can be properly detected. 2006-02-25 00:33:17 +00:00
adustman
5692c4c3bd Version 1.2.1c3:
* _mysql.c: raise ProgrammingError for certain methods if they
  are used on Result object created with conn.use_result(),
  since they don't make sense.

* setup.py: Reimplement quote stripping around directory names.
  This seems to be a bug in older versions of mysql_config

* cursors.py: If a unicode query string is passed, encode it in
  the connection's character set.
2005-05-12 02:08:50 +00:00
adustman
f58ed4b020 * removed directory filtering in setup.py; should no longer be necessary,
and it seems to cause problems on some platforms or versions of MySQL
  (most likely 3.23's mysql_config)

* removed use of weak references; I don't think they were needed any more,
  and they caused problems in some of the threaded tests.

* applied patch #1188359: If converters are passed in, use a copy().

* Version 1.2.1c2.
2005-05-01 00:09:25 +00:00
adustman
cebe539399 Version 1.2.1c1 2005-04-10 20:56:55 +00:00
adustman
a4892cd07e Merge in changes from the trunk 2005-04-03 04:23:18 +00:00
adustman
ba4cea7fdf Fix connection leak 2005-02-04 17:03:46 +00:00
adustman
6729b187d2 * Version 1.1.10
* Minor doc updates and setup tweaks.
2005-02-01 04:01:40 +00:00
adustman
1867e3accb add load_infile option and more doc cleanups 2005-01-23 04:49:04 +00:00
adustman
ebd7a3e62a Documentation updates. 2005-01-21 03:25:30 +00:00
adustman
16a5822dae * Bump version to 1.1.9
* Reworked Unicode support; please test

 * Make Binary() create an array('c')

 * Clean up Cursors a bit.

 * Add a TimeDelta factory function, even though not in the API spec.
2005-01-20 04:20:19 +00:00
adustman
f0d497d8f3 * Overhaul setup.py
* Clean up warnings in _mysql.c when SSL is not available

* Tidy up MANIFEST.in
2005-01-13 05:00:29 +00:00
adustman
8f4649dbd2 Version 1.1.8 2004-12-31 22:41:11 +00:00
adustman
34ad168b73 Very minor DB-API compliance fixes. 2004-12-31 22:34:11 +00:00
adustman
6943657d87 Add support for warning_count() and constants needed for
issuing multiple statements.
2004-12-31 01:30:17 +00:00
adustman
59cdc0aaea * add set_server_option() and sqlstate() connection object methods 2004-12-30 22:17:36 +00:00
adustman
8632a76952 *** empty log message *** 2004-12-30 20:59:58 +00:00
adustman
ebaa1af609 * Add connection.next_result()
* Another fix for bug #1093028
2004-12-30 20:58:48 +00:00
adustman
7e7ebf7e6a Convert the new autocommit, commit, and rollback connection methods
into pure C. When using MySQL<4.1, these issue queries. This simplifies
the Python layer a bit.
2004-12-30 19:13:22 +00:00
adustman
222e97e40e Fix bug 1093028 2004-12-30 17:50:48 +00:00
adustman
2d32380e68 Version 1.1.7 2004-10-31 02:11:20 +00:00
adustman
b624fd4bdd * Fix pytimes.TimeDelta_or_None()
* Include days with mxdatetime.format_TIME()

 * Return MySQL TIME columns as a time delta

 * Remove old CompatMysqldb module

 * Version 1.1.6
2004-09-26 22:22:59 +00:00
adustman
a63002ecb5 * Removed some old-style Python stuff from setup.py
* Added a bit of documentation on ssl parameter to Connection

 * Version 1.1.5
2004-09-19 21:38:08 +00:00
adustman
075eea32f3 Version 1.1.4
* setup.py: changed include and library path order

 * MySQLdb/connections.py: fix super class reference in autocommit()

 * Tested against MySQL-4.1.4a with InnoDB tables
2004-09-11 07:25:34 +00:00
adustman
ca5e0c3216 Re-fix typo 2004-09-11 05:57:19 +00:00
adustman
ff28c9fd14 Fix _mysql_Execption() typo. Code is only compiled when MySQL-4.1
is in use, and I haven't done any actual testing against 4.1 yet.
Please report any bugs to the SourceForge tracker.
2004-09-11 05:29:00 +00:00
adustman
145565b3e4 Version 1.1.3
* _mysql.c: restored missing mysql_errno() call (bug #1023466)

 * _mysql.c: Only try to use SSL support if HAVE_OPENSSL is defined.
   Raise NotSupportedError if ssl is requested but not available.
2004-09-08 01:39:46 +00:00
adustman
ceabe0ed1b General cleanups.
* Turn autocommit off initially

 * Add support for mysql_autocommit, _commit, and _rollback API functions
   (new in MySQL-4.1)

 * Remove Connection.begin(); use SQL BEGIN or START TRANSACTION instead

 * pytimes (standard datetime module) is now the default implementation

 * Detect and handle MySQL-4.1 and newer TIMESTAMP (looks like DATETIME)

 * UnicodeType and ObjectType now always handled (required features)

 * Ditch support for L at the end of long integer

 * Remove z and crypt libs if building for Windows

 * Version 1.1.2
2004-09-06 21:53:40 +00:00
adustman
69efaa470e Bump version. Update README. Convert all classes to new-style. 2004-06-07 03:44:39 +00:00
adustman
1fdb7422a6 Initial conversion to modern Python. 2004-05-19 03:54:01 +00:00