74 Commits

Author SHA1 Message Date
ab6f294c41 Clean up some whitespace, test python version the same (cleaner) way that trunk does 2010-02-25 21:28:13 +00:00
284b862950 Found one more old-style raise. Should fix #2122496. 2008-10-18 00:13:35 +00:00
087dcad5b7 Fix #2001855: Don't use ez_setup; just use setuptools direction. 2008-10-17 00:52:50 +00:00
c748fa7d9c Small build/packaging fixes. 1.2.2c1. 2007-02-25 04:06:01 +00:00
48b09d439e Use setuptools instead of distutils. Add Python-2.5 support for with statement as described in http://docs.python.org/whatsnew/pep-343.html *Please test* 2007-02-25 00:16:43 +00:00
b8c0d0faf8 Factor out most of the setup into setup_posix.py.
setup_windows.py is next.
2007-01-03 23:13:58 +00:00
0b230a5c6a Cleaner way to handle the compile-time versioning (via distutils
define_macro), from #1586161 (Alexandr Zamaraev).
2006-10-28 14:53:23 +00:00
1044fea0ff Use CP/M-style switch prefixes (/D instead of -D) on Windows. 2006-08-30 04:04:42 +00:00
d0fb145489 Fallback to non-thread-safe libraries if the thread-safe ones
are unavailable.
2006-04-09 02:56:39 +00:00
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
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
6024695c34 Fix classifiers and package file handling 2006-02-28 17:50:22 +00:00
344a8a3d2c Fix distribution naming 2006-02-28 17:36:32 +00:00
718a02ea0e Derive all version information from metadata.cfg 2006-02-28 17:16:50 +00:00
5e867b6f18 Fix embedded build 2006-02-28 16:34:16 +00:00
45c9f5d0ed * Update README
* Completely rewrite setup.py

* Make pytimes the only time implementation, moved into times
2006-02-28 04:19:27 +00:00
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
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
cebe539399 Version 1.2.1c1 2005-04-10 20:56:55 +00:00
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
a4892cd07e Merge in changes from the trunk 2005-04-03 04:23:18 +00:00
6729b187d2 * Version 1.1.10
* Minor doc updates and setup tweaks.
2005-02-01 04:01:40 +00:00
f3752568e2 Windows fixes 2005-01-25 04:45:30 +00:00
aac9787605 Made setup.py usable for Windows again. You must set
the mysqlroot environment variable or patch to make
it actually work.
2005-01-23 06:56:55 +00:00
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
249ab4d23e Should now auto-detect all build settings for any platform.
win32 now requires win32pipe to build. Build has only been
tested on Linux, but AFAIK, os.popen() works properly on
all other platforms, and certainly must work on anything
remotely POSIX/UNIX-like. I am assuming that it will work
on Mac OS X as well.
2005-01-15 02:16:26 +00:00
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
8f4649dbd2 Version 1.1.8 2004-12-31 22:41:11 +00:00
2d32380e68 Version 1.1.7 2004-10-31 02:11:20 +00:00
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
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
83c22e8d31 Restore missing common on include_dirs 2004-09-19 19:56:20 +00:00
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
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
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
69efaa470e Bump version. Update README. Convert all classes to new-style. 2004-06-07 03:44:39 +00:00
1fdb7422a6 Initial conversion to modern Python. 2004-05-19 03:54:01 +00:00
187d93c188 Fix bug #897344 2004-02-29 02:28:20 +00:00
59913d32f4 * Check for module initialization failure (extremely rare)
* The MySQL FIELD_TYPE converter can now be a sequence of 2-tuples.
   Item 0 is a bit mask (using FLAG.*) which must be matched. This should
   be an integer. Item 1 is the conversion function. If item 0 is not an
   integer, then this function is considered the default converter for
   this FIELD_TYPE. Note that these tuples are considered when the query
   has been executed and the result is available, so it doesn't add a
   per-row overhead.

 * As a result of the above, BINARY BLOB fields are now returned as
   character arrays using the array.array class. Non-BINARY BLOB fields
   (i.e. TEXT) are returned as strings. If unicode is enabled, they are
   returned as unicode strings.

 * Bump version to 0.9.3b3.
2003-12-30 01:30:36 +00:00
ff06467924 Version bump 2003-11-23 22:04:04 +00:00
2ee619e3b7 Fix version number correctly 2003-09-07 02:07:16 +00:00
2f298c15f8 Version bump 2003-09-07 02:00:34 +00:00
345fe79759 Include new time handling modules 2003-07-11 00:34:40 +00:00
b6509148a2 Bump version numbers. 2003-07-08 06:34:27 +00:00
43854cc57e Build and documentation updates 2003-04-19 04:26:57 +00:00
aea6704864 Embedded server support 2002-08-22 21:12:02 +00:00
43994da567 0.9.2 (finally) 2002-07-21 04:05:17 +00:00
b6323b0477 Version 0.9.2c3, see CHANGELOG 2002-07-10 15:18:13 +00:00
6165f9d2f7 FreeBSD/OpenBSD update 2002-07-02 03:55:58 +00:00
0983b391d7 Smack my version up 2002-06-24 18:27:39 +00:00