Hello,
Just tried guile-sqlite3 - after applying the 2 patches of Detlev - and
succeeded with
sqlite-open, sqlite-prepare, sqlite-column-names [and sqlite-close]
but
scheme@(guile-user)> (sqlite-step stmt)
ERROR: In procedure pointer->bytevector:
ERROR: In procedure pointer->bytevector: null pointer dereference
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In sqlite/sqlite3.scm:
408:29 2 (sqlite-row #<<sqlite-stmt> pointer: #<pointer 0x89f224…>)
387:12 1 (#<procedure 90025c0 at sqlite/sqlite3.scm:377:4 (stmt…> …)
In unknown file:
0 (pointer->bytevector #<pointer 0x0> 0 #<undefined> #<un…>)
Cheers,
David
;; --
Le Thu, 31 Mar 2011 18:18:55 +0200,
Detlev Zundel <[email protected]> a écrit :
> Hi Andy,
>
> >> Indeed, there's no null-termination on this string. I guess we need to
> >> copy into a bytevector that is longer and provide a NUL byte. Want to
> >> patch that one too?
>
> The attached patches work for me.
>
> As a followup I'd really like to put a few statments into tests below
> test/. Can anyone point me to what functions (i.e. assert,...) I should
> use in such tests?
>
> Thanks
> Detlev