Patch fixing MySQL module breakage
Posted: Tue Aug 18, 2009 1:59 am
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:
I commited this patch to a branch named mysql. You can use it like this:
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
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.
Code: Select all
git clone http://reactor-core.org/newlisp/.git
cd newlisp
git merge mysql
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