[racket-dev] SIGSEGV MAPERR si_code 1 fault on addr (nil) when inserting rows via "db" / SQLite

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Sun Nov 13 09:01:30 EST 2011


I can't help fixing the problem with your current code, but I can point you
to the docs where Ryan says you should probably use functions like
"start-transaction", "commit-transaction" and "call-with-transaction" (in
case you missed those).

PostgreSQL, MySQL, and SQLite connections are discouraged from using
transaction-changing SQL statements

So, for example, (query-exec db "BEGIN TRANSACTION") becomes (start-transaction


Rodolfo Carvalho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111113/3d6d3868/attachment.html>

Posted on the dev mailing list.