Patch fixing MySQL module breakage

Started by TedWalther, August 17, 2009, 06:59:48 PM

Previous topic - Next topic

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:



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:



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:



git pull origin
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.