Commit Graph

134 Commits

Author SHA1 Message Date
adustman
910e7fd173 Fixes to work with MySQLdb-0.9.0.
A plus or minus in front of the database name can force transactions on
or off.

Make use of MySQLdb.conversions. Only the SQL -> Python conversions are
actually used by ZMySQLDA.

A minor bug in MySQLdb-0.9.0c1 keeps it from working with this, only
seen with not using mx.DateTime. Fixed in CVS. Will release 0.9.0c2
before doing another ZMySQLDA release.
2001-05-23 03:27:35 +00:00
adustman
3499c4db38 Fix the case where there is no mx.DateTime. 2001-05-23 03:16:34 +00:00
adustman
cf510d3326 Remove a debug string. 2001-05-23 03:16:12 +00:00
adustman
702b563c6e 0.9.0c1 minor edit. 2001-05-23 02:12:10 +00:00
adustman
05d3f63ac1 PyObject_Length() == -1 on error. Thanks, Jon Ribbens. 2001-05-14 18:49:27 +00:00
adustman
ce00d83836 Smash data into two separate modules: sets and times. I never liked
that name anyway.

Set has been extended somewhat. The comparision operators really only
work properly with Python 2.1, due to the limitations of __cmp__.
Set also uses the binary operators (&, |, ^), since these make somewhat
more sense than the arithmetic ones, though there is no good analog for
- (if only there were a nand operator...)

Bump the version to 0.9.0b3. This is not the actual 0.9.0b3 release yet,
however. I want to do some more insanity checking. But almost ready for
some candidate releases.
2001-05-12 04:30:34 +00:00
adustman
9c6aaae1eb More major code heaving.
All the threading stuff is ripped out and burned.
Too much code for not enough benefit. Still thread-safe,
just don't share connections.

Made a nice Set class for SET columns.

Updated the docs.
2001-05-11 05:07:33 +00:00
adustman
d05c6996da Revamped docs. 2001-05-10 05:31:50 +00:00
adustman
b1518378f9 Changes for MySQLdb-0.9.0+ compatibility. 2001-05-09 04:22:11 +00:00
adustman
b99a8c9cc0 Really work around short timestamps. 2001-05-09 02:49:47 +00:00
adustman
b101238871 Work around short timestamps. 2001-05-09 02:48:51 +00:00
adustman
fce05481aa Initial revision 2001-05-09 02:23:14 +00:00
adustman
38075e7264 Duh. 2001-05-01 02:05:40 +00:00
adustman
94735d8743 Add _mysql_const.converters. 2001-04-28 03:31:11 +00:00
adustman
74ecb7ece6 Move type conversion dictionaries to _mysql_const.converters. 2001-04-28 03:30:40 +00:00
adustman
56a78c60ff Type conversion dictionaries, factored out from MySQLdb.py. 2001-04-28 03:28:40 +00:00
adustman
3e2c672724 Documentation updates. 2001-04-28 03:27:58 +00:00
adustman
76e8266a19 Doc updates. 2001-04-28 01:46:03 +00:00
adustman
d72f605a67 Calls to _mysql__fetch_row() might move the row tuple, so use a PyObject **.
Thanks to Andy Martin for finding this.
2001-04-28 00:39:06 +00:00
adustman
30fca0e176 Move the documentation around. 2001-04-28 00:35:59 +00:00
adustman
b3835bce09 Metadata for packaging (PEP-241) 2001-04-26 19:56:31 +00:00
adustman
3a7ac36509 Be extra-paranoid about default instance quoting. 2001-04-22 01:56:55 +00:00
adustman
3fbda72e18 Some experimental support for quoting instances. 2001-04-22 01:54:14 +00:00
adustman
67327283fb Revert to 1.2 and then properly fix EOLs. 2001-04-22 00:33:40 +00:00
adustman
8f4d8a05d5 Whoops. 2001-04-22 00:21:13 +00:00
adustman
a537e7a578 Update exception generation. 2001-04-22 00:13:33 +00:00
adustman
35408e6928 A tip for Zope users. 2001-04-22 00:11:09 +00:00
adustman
40c7a6383e Mark connection open, even if open failed, for proper error reporting.
Then mark it closed so we don't try to close it.
2001-04-19 17:41:22 +00:00
adustman
27292d7dfa Bump version. 2001-04-19 17:33:58 +00:00
adustman
233217ce24 Be more paranoid about operating on closed connections. 2001-04-19 17:32:53 +00:00
adustman
915bad12fc Break a cycle that prevented GC. 2001-04-19 17:31:15 +00:00
adustman
31fb50202d Lots of new __doc__ strings and other odds and ends
for new pydoc module in Python 2.1.

Exceptions have been moved into _mysql_const/exc.py.
Mostly this is for documentation purposes. Mostly.
2001-04-18 04:06:04 +00:00
adustman
9ea4cb311b Doc updates. 2001-04-14 02:20:14 +00:00
adustman
4a8a2104a1 Correctly handle port in connection strings. 2001-04-12 01:26:28 +00:00
adustman
959c832fa3 Apparently DateTime() can't convert TIME 2001-04-10 16:27:46 +00:00
adustman
759ef1c987 Work around MySQL zero date conflict with DateTime. 2001-04-10 15:19:50 +00:00
adustman
935a34173c Transaction fixes. 2001-04-06 21:25:13 +00:00
adustman
a2555be689 Forgot to commit this. 2001-03-31 05:57:36 +00:00
adustman
a3bbc56112 ARGH! 2001-03-26 01:17:58 +00:00
adustman
bfbc41aaa8 Missed a Py_INCREF()! Does not seem to affect Python 1.5.2.
Does affect Python 2.1b1.
2001-03-17 01:52:05 +00:00
adustman
64b201fe09 Horrible, stupid error 2001-03-17 01:03:24 +00:00
adustman
e17cb128f7 Clean up insignificant compiler warnings. 2001-03-17 00:39:25 +00:00
adustman
c0548b10fc Distutils finds __init__.py automatically? 2001-03-16 17:46:26 +00:00
adustman
ce137a31c2 Watch for PEBKAC problems. 2001-03-14 23:34:16 +00:00
adustman
25e70e8a38 Browser cleanups. 2001-03-13 17:21:26 +00:00
adustman
aeae226132 Fix transaction semantics. 2001-03-13 15:37:17 +00:00
adustman
7986083fad Update for new transaction semantics 2001-03-12 20:15:48 +00:00
adustman
2c438ba0f1 Initial revision 2001-03-12 19:20:18 +00:00
adustman
e00de5823c Finally, a definitive way to determine if transactions are available. 2001-03-12 18:08:02 +00:00
adustman
84bedad4a4 Find and plug memory leak. 2001-03-12 02:58:03 +00:00