[plt-scheme] using sqlid in mzscheme 4.1.5

From: Noel Welsh (noelwelsh at gmail.com)
Date: Fri May 8 09:36:35 EDT 2009

On Fri, May 8, 2009 at 2:13 PM, Mate Nagy <mnagy at port70.net> wrote:

>  Unfortunately, it looks like sqlid doesn't work in 4.1.5, because it
> needs set-car! (it is available in the 4.x planet repository
> nevertheless).

There are several sqlid packages for PostgreSQL. I had a quick look in
sqld-psql-c.plt and sqld-psql-ffi.plt, and I didn't find any use of
set-car!

...

Found it in sqli.scm

This code is ridiculous:

  (set-car! (cdddr (cddddr (cdddr handle))) jn)

I would replace it with a structure, which is how it should have been
done in the first place. It looks like this code is isolated to the
one module, so it shouldn't be too hard to drag out of the 1960s.

N.


Posted on the users mailing list.