Possible bug in SchemeQL macro
[email protected] Fri, 15 Apr 2005 10:41:42 -0700 (PDT)
| Newsgroups | gmane.lisp.scheme.plt.schematics.general |
|---|---|
| Message-ID | <[email protected]> |
In SchemeQL v.0.05, in the file sql.ss, a portion of the
macro "(define-syntax (insert stx) ..." that deals with
the case
(_ table cols query-or-vals)
contains an incorrect argument in the call to
make-insertion (on line 900). The clause
((list? v) #cs(format "VALUES ( ~a )" (join-values (cons v rest)
#\,)))
should simply be
((list? v) #cs(format "VALUES ( ~a )" (join-values v #\,)))
At present, using the relevant "(insert ...)" form
causes the error "reference to undefined identifier: rest".
Altering the line as I have shown above makes the
form usable.
I'd appreciate it if someone could drop me a note telling
me whether, having made this change to sql.ss, I should
recompile SchemeQL. And if so, how to do it. Cheers,
nishad
--
"Things ain't been the same since the blues walked into town."
-- Larry Love
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click