diff --git a/mysql/MySQLdb-FAQ.sgml b/mysql/MySQLdb-FAQ.sgml index ab137f3..2e0c1c4 100644 --- a/mysql/MySQLdb-FAQ.sgml +++ b/mysql/MySQLdb-FAQ.sgml @@ -53,59 +53,9 @@ for Windows, but I can't test it. Trouble with ZMySQLDA -

There are a few tricks to getting Zope's ZMySQLDA to work with -. -Building ZMySQLDA -

-The basic steps are: - -Install MySQLdb first, so that it's on your Untar the ZMySQLDA tarball (available from -). -Patch it with the ZMySQLDA.patch included with the MySQLdb -distribution. In the directory that you did the untar, - -patch -p1 </path/to/ZMySQLDA.patch - -If you do a make, which is what the ZMySQLDA instructions -tell you, it will try to compile the older -MySQLmodule, which you don't need. Ignore stuff like: - -./MySQLmodule.c: In function `pythonify_row': -./MySQLmodule.c:238: warning: assignment from incompatible pointer type -./MySQLmodule.c: In function `pythonify_res_fields': -./MySQLmodule.c:384: invalid lvalue in unary `&' -./MySQLmodule.c: In function `STH_fetchdict': -./MySQLmodule.c:1125: invalid lvalue in unary `&' -./MySQLmodule.c:1147: invalid lvalue in unary `&' -make: *** [MySQLmodule.o] Error 1 - -MySQLmodule.c doesn't compile against -MySQL-3.22 without patches. Which is why MySQLdb exists... -Restart Zope. You should have a ZMySQLDA Product in the -Control Panel. - -How do I use it? -

I'm not the best person to ask. There are two main steps to getting -started. - -Create a ZMySQLDA Connection object somewhere. -The connect string syntax is "database@host user password". -If the database is on the same host as the Zope server, you can leave -out @host. You might be able to leave off user and password as well, -depending on your GRANT tables. Whether or not this is a good idea is -another question. -You're on your own. I recommend reading the - and maybe -. - +

Not supported. By me, at least. There is a new version on + +that supports MySQLdb without any patching. Use that. Using MySQLdb

MySQLdb is a diff --git a/mysql/MySQLdb.sgml b/mysql/MySQLdb.sgml index d7e1fc4..f5db15c 100644 --- a/mysql/MySQLdb.sgml +++ b/mysql/MySQLdb.sgml @@ -29,7 +29,9 @@ much trouble on most UNIX-like platforms by using the Windows is Python

MySQLdb requires Python 1.5.2. Earlier versions will not work, because @@ -58,7 +60,12 @@ type. MySQLdb has only been lightly tested. MySQL-3.23 is presently in alpha (unstable) release. Several API additions have been made so far. These will be incorporated into -MySQLdb as work progresses. +MySQLdb as work progresses. As of 3.23.15, transactions are supported +in MySQL using BDB tables. MySQLdb (0.2.2 and up) detects the +server version upon connection and will issue DateTime

If you have the Mysqldb to MySQLdb changes Zope and ZMySQLDA -

The distribution contains a patch to modify the - - -to use MySQLdb instead of MySQLmodule. Read the instructions in -the patch. If that fails, read the FAQ. +

I'm not distributing a ZMySQLDA patch any more. Somebody else +has written a ZMySQLDA that works with MySQLdb. Find it at +. Documentation

The web page documentation may be slightly ahead of the latest release and may reflect features of the next release. FAQs

A FAQ is available at -. +. _mysql module

If you want to write applications which are portable across databases, @@ -298,16 +303,15 @@ attributes are defined within MySQLdb. commit() If the database supports transactions, this commits the current transaction; otherwise this method - successfully does nothing. MySQL does not presently - support transactions. + successfully does nothing. MySQL supports transactions + as of version 3.23.15-alpha. If the database supports transactions, this rolls back (cancels) the current transaction; otherwise a NotSupportedError is - raised. This method is only defined if the MySQL client library - supports transactions. + raised. -Compatibility note: The older does define this method, +Compatibility note: The older defines this method, which sucessfully does nothing. This is dangerous behavior, as a successful rollback indicates that the current transaction was backed out, which is not true, and fails to notify the