Patch fixing MySQL module breakage

For the Compleat Fan
Locked
TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Patch fixing MySQL module breakage

Post by TedWalther »

I tried doing two queries in a row and notice that the results of the old query were prepended to the results of the second query. It was a simple typo. Here is a patch generated by git:

Code: Select all

 modules/mysql.lsp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/mysql.lsp b/modules/mysql.lsp
index aca5c9a..c23fb6e 100644
--- a/modules/mysql.lsp
+++ b/modules/mysql.lsp
@@ -91,6 +91,7 @@
 
 (set 'files '(
        "/usr/local/lib/libmysqlclient.so.19.0" ; OpenBSD 4.4
+       "/usr/lib/libmysqlclient.so.15" ; Ubuntu Jaunty
        "/usr/lib/libmysqlclient.so" ; Linux, UNIX
        "/usr/local/mysql/lib/libmysqlclient.so" ; Linux, UNIX
        "/usr/local/mysql/lib/libmysqlclient.dylib" ; MacOS X
@@ -219,7 +220,7 @@
 ;; The whole result set from the query is returned at once as a list of row lists.
 
 (define (fetch-all , (all '()))
-  (dotimes (x (num-rows)) (push (fetch-row) alli -1)))
+  (dotimes (x (num-rows)) (push (fetch-row) all -1)))
 
 ;; @syntax (MySQL:databases)
 ;; @return A list of databases.
I commited this patch to a branch named mysql. You can use it like this:

Code: Select all

git clone http://reactor-core.org/newlisp/.git
cd newlisp
git merge mysql
At that point you can compile and go just as when using the regular source tarball.

Now you have the repository downloaded, you can use the following command to pull in any new changes and bring it up to date, all without losing any of the development history or any of your local changes:

Code: Select all

git pull origin

Locked