diff options
author | tsarna <tsarna> | 2000-03-11 19:59:56 +0000 |
---|---|---|
committer | tsarna <tsarna> | 2000-03-11 19:59:56 +0000 |
commit | dd35a62fcf5fab7f26cf4381b87ff4f36f095e2a (patch) | |
tree | 0424c7910ae121ec1f43820f953362e2df590ac5 /databases/zope-mysql/patches | |
parent | c7313de769130fc50cf414ef9e966aa7077fb63a (diff) | |
download | pkgsrc-dd35a62fcf5fab7f26cf4381b87ff4f36f095e2a.tar.gz |
Update to use py-mysqldb 0.1.3
Changes:
- better SQL quoting
Changes for py-mysqldb 0.1.3 that I forgot to note:
- Fixes a coredump at exit under some conditions
- Improved backwards compatability with MySQLmodule.
Diffstat (limited to 'databases/zope-mysql/patches')
-rw-r--r-- | databases/zope-mysql/patches/patch-aa | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/databases/zope-mysql/patches/patch-aa b/databases/zope-mysql/patches/patch-aa index ad3df72ecb1..731aa3ca532 100644 --- a/databases/zope-mysql/patches/patch-aa +++ b/databases/zope-mysql/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.3 2000/02/27 18:21:44 tsarna Exp $ +$NetBSD: patch-aa,v 1.4 2000/03/11 19:59:57 tsarna Exp $ Patch from MySQLdb distribution to let the ZMySQL DA work with it instead of with MySQLmodule, with patch paths modified for pkg use. @@ -31,7 +31,8 @@ it where Python can find it. Finally, you will need to restart Zope. Andy Dustman <adustman@comstar.net> 1999-10-11 ---- python/Products/ZMySQLDA/DA.py.orig Mon Jan 25 10:42:45 1999 +diff -ur python/Products/ZMySQLDA/DA.py python/Products/ZMySQLDA/DA.py +--- python/Products/ZMySQLDA/DA.py Mon Jan 25 10:42:45 1999 +++ python/Products/ZMySQLDA/DA.py Wed Sep 15 20:16:32 1999 @@ -133,18 +133,6 @@ @@ -55,11 +56,12 @@ Andy Dustman <adustman@comstar.net> + def sql_quote__(self, v, escapes={}): + from _mysql import escape_string + return "'%s'" % escape_string(v) ---- python/Products/ZMySQLDA/db.py.orig Mon Jan 25 10:42:45 1999 +diff -ur python/Products/ZMySQLDA/db.py python/Products/ZMySQLDA/db.py +--- python/Products/ZMySQLDA/db.py Mon Jan 25 10:42:45 1999 +++ python/Products/ZMySQLDA/db.py Mon Oct 11 21:29:07 1999 @@ -103,7 +103,8 @@ """Db connection implementation""" - __version__='$Revision: 1.3 $'[11:-2] + __version__='$Revision: 1.4 $'[11:-2] -import MySQL, regex, sys +import _mysql, regex, sys |