Error in MySQL module
Posted: Thu May 10, 2007 12:56 am
In the function fetch-all, the uninitialized symbol 'all continues to collect results after multiple queries, stacking them subsequently.
To fix, change (define (fetch-all) to (define (fetch-all , all):
To fix, change (define (fetch-all) to (define (fetch-all , all):
Code: Select all
(define (fetch-all , all)
(dotimes (x (num-rows)) (push (fetch-row) all))
(if all (reverse all) '()))