Commit Graph

219 Commits

Author SHA1 Message Date
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
34624f472f Rename CHANGES to HISTORY 2006-04-09 03:37:18 +00:00
adustman
bfda75c89c Fix MANIFEST (well, fixed after the NEXT commit) 2006-04-09 03:36:29 +00:00
adustman
b2ba4aaae2 Update CHANGES file 2006-04-09 03:29:59 +00:00
adustman
afbd55ab46 Bump version. Disable leak checking by default. 2006-04-09 03:25:04 +00:00
adustman
d0fb145489 Fallback to non-thread-safe libraries if the thread-safe ones
are unavailable.
2006-04-09 02:56:39 +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
f373a32f95 raise NotSupportedError instead of non-existent UnsupportedError
connection.set_character_set() now avoids raising an exception
if the current character set is already correct, regardless of
MySQL version.
2006-04-04 15:04:20 +00:00
adustman
a1e2fb715b 1.2.1 2006-04-02 17:45:58 +00:00
adustman
0e9cc93e37 Fix leak test for subclassing 2006-03-28 12:59:24 +00:00
adustman
426d27d4ae Fix some inconsistent spacing.
Try to fix some memory leaks. I think cursors don't leak any more
but I've had no luck with connections. If you close your connections
you should be fine, even if you don't close your cursors.
2006-03-28 05:03:35 +00:00
adustman
e5d609b344 Added documentation for sql_mode support. 2006-03-06 05:33:01 +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
21a3d3397b Bump metadata version.
Clean up setup.cfg so it doesn't break RPM builds on files which
are no longer included.

Add a test case for warnings for column truncation.

Clean up warnings; was working around the introduced bug that
returned (var)char columns with binary collations as array.

Exposed the column flags (values from constants.FLAG) as
description_flags on the cursor.
2006-03-05 04:59:14 +00:00
adustman
9e4c5ec971 Reverted patch #1387290. It caused char/varchar columns with a binary
collation to return array('c', ...), which should only be returned for
actual BLOB columns.

Figured out how to fix loading SET columns. Bug #1214916.

Cleaned up the SET test.

Removed *.html and *.css files from MANIFEST; their presence (or lack
thereof since they are no longer being packaged) caused RPM builds to
fail, and possibly others.
2006-03-04 23:27:24 +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
c93adbedd4 * Add metadata.cfg and site.cfg to MANIFEST.in so they get packaged
* Remove version_info from metadata before calling setup() to avoid
  complaints

* Fix cursor.callproc() as good as can be fixed.

* Improve/fix various tests for stored procedures.
2006-03-02 04:19:32 +00:00
adustman
6024695c34 Fix classifiers and package file handling 2006-02-28 17:50:22 +00:00
adustman
344a8a3d2c Fix distribution naming 2006-02-28 17:36:32 +00:00
adustman
718a02ea0e Derive all version information from metadata.cfg 2006-02-28 17:16:50 +00:00
adustman
5e867b6f18 Fix embedded build 2006-02-28 16:34:16 +00:00
adustman
45c9f5d0ed * Update README
* Completely rewrite setup.py

* Make pytimes the only time implementation, moved into times
2006-02-28 04:19:27 +00:00
adustman
b3ce052525 Python Sets (from sets module) as parameters work, but *only* Set
and not ImmutableSet. Still trying to get it to work on BaseSet
so any subclasses will work.
2006-02-27 23:10:38 +00:00
adustman
ae901f0a4f Fix client_flag fubar and add support for more detailed warning
information available from MySQL-4.1 and newer server.
2006-02-27 18:48:57 +00:00
adustman
36158116b1 Add sets module support and make boolean support non-optional 2006-02-27 18:39:53 +00:00
adustman
b14a0fa91d Remove sets module in favor of standard sets module (Python-2.3 and
newer)
2006-02-27 17:19:40 +00:00
adustman
b13701f252 Remove FIELD_TYPE.CHAR (deprecated) from STRING set since it conflicts
with FIELD_TYPE.TINY (NUMBER).
2006-02-27 15:45:37 +00:00
adustman
e11b39a4f4 Fix fubared TimeDelta_or_None and Time_or_None 2006-02-27 05:49:26 +00:00
adustman
e23802d4d0 Remove erroneous insert_id() on cursor reference. 2006-02-27 05:37:22 +00:00
adustman
854f8e904a Translate some additional error codes 2006-02-27 05:31:14 +00:00
adustman
d90d2c8875 Documentation is good. Correct documentation is better. 2006-02-27 04:48:02 +00:00
adustman
86d1087f16 Enable MULTI_STATEMENTS if the client library is 4.1 or newer.
Enable MULTI_RESULTS if the client library is 5.0 or newer.
2006-02-27 04:20:48 +00:00
adustman
720a726049 Encode queries to connection character set before inserting
parameters. Bug 1438913
2006-02-26 14:50:47 +00:00
adustman
de69219eb0 Generic DB-API unit test module 2006-02-25 03:44:32 +00:00
adustman
d9e78275c6 Add the DB API unit tester for MySQLdb 2006-02-25 03:43:47 +00:00
adustman
1259565a78 * Fix callproc
* Subtle bug: fetchall() could return the entire result set
  over and over again if you called it multiple times (not
  likely)
2006-02-25 03:31:52 +00:00
adustman
47e9e8c7ee Add callproc() support. 2006-02-25 00:56:15 +00:00
adustman
c1e9fbc54b Don't convert binary varchar columns to unicode.
Patch 1387290
2006-02-25 00:43:09 +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
ab1936ab44 Apply Gentoo patch for NEWDECIMAL support (MySQL-5.0) 2006-02-23 02:00:58 +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
a400476718 Fix Debian information 2005-05-01 18:41:32 +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
14807597cb This should fix the problem with Fedora Core noted on bug
#1145226: On library/include paths, remove quotation marks,
if present.
2005-04-10 20:50:29 +00:00
adustman
ee9db58306 Apply patch #1179364 for bug #1037468:
DeprecationWarnings for deprecated methods.
2005-04-10 20:41:29 +00:00