Re: Problems with guile-sqlite3

2011-04-21 Thread David Pirotte
Hello, Le Thu, 21 Apr 2011 14:17:15 +0200, Andy Wingo a écrit : > On Wed 20 Apr 2011 17:51, Detlev Zundel writes: > ... > Perhaps David was missing the fact that you need to run `autoreconf > -vif' to generate ./configure. Yes I did miss that, thank you! I am thinking, would it not be interes

Re: Problems with guile-sqlite3

2011-04-21 Thread Andy Wingo
On Wed 20 Apr 2011 17:51, Detlev Zundel writes: >> I'd love to have a './configure --prefix=... && make install' [even though >> there is >> only only file for the time being], could you help me doing the setup or >> point me >> a tutorial a could read with regards these matters? > > Duew to us

Re: Problems with guile-sqlite3

2011-04-20 Thread Detlev Zundel
Hi David, > I am sorry for the very loong delay in responding, but yes it did work > for me as > well, many thanks for your patches. Ok, thanks for the confirmation. > I'd love to have a './configure --prefix=... && make install' [even though > there is > only only file for the time being]

Re: Problems with guile-sqlite3

2011-04-20 Thread David Pirotte
Hi Detlev, I am sorry for the very loong delay in responding, but yes it did work for me as well, many thanks for your patches. I'd love to have a './configure --prefix=... && make install' [even though there is only only file for the time being], could you help me doing the setup or point

Re: Problems with guile-sqlite3

2011-04-11 Thread Detlev Zundel
Hi, >> I have added you to the gitorious repo. Feel free to push your patches >> there :-) > > Hey thanks! Still I'd welcome if you at least look over my changes and > give me some hints if you see room for improvements - most of what I did > in scheme in the past was in scsh ;) > > As I said in

Re: Problems with guile-sqlite3

2011-04-04 Thread Detlev Zundel
Hi Andy, > On Mon 04 Apr 2011 18:22, Detlev Zundel writes: > >>> I spotted where the problem comes from: it is when a text value is empty. I >>> have >>> produced a small but complete example [attached]: can you reproduce it ? >> >> Yes, thanks for the test case, I can now reproduce it and hopef

Re: Problems with guile-sqlite3

2011-04-04 Thread Andy Wingo
On Mon 04 Apr 2011 18:22, Detlev Zundel writes: >> I spotted where the problem comes from: it is when a text value is empty. I >> have >> produced a small but complete example [attached]: can you reproduce it ? > > Yes, thanks for the test case, I can now reproduce it and hopefully the > attache

Re: Problems with guile-sqlite3

2011-04-04 Thread Detlev Zundel
Hi David, > I spotted where the problem comes from: it is when a text value is empty. I > have > produced a small but complete example [attached]: can you reproduce it ? Yes, thanks for the test case, I can now reproduce it and hopefully the attached patches work for you also. The first one fix

Re: Problems with guile-sqlite3

2011-04-01 Thread David Pirotte
Le Fri, 01 Apr 2011 11:12:03 +0200, Detlev Zundel a écrit : > Hi David, > > > Just tried guile-sqlite3 - after applying the 2 patches of Detlev - and > > succeeded with > > ... > Thanks for testing. Unfortunately currently I'm not able to reproduce > your findings - in my little test I was su

Re: Problems with guile-sqlite3

2011-04-01 Thread Andy Wingo
Applied the patches. Thanks! Andy -- http://wingolog.org/

Re: Problems with guile-sqlite3

2011-04-01 Thread Detlev Zundel
Hi Andy, > On Thu 31 Mar 2011 18:18, Detlev Zundel writes: > >> 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. > >

Re: Problems with guile-sqlite3

2011-04-01 Thread Andy Wingo
On Thu 31 Mar 2011 18:18, Detlev Zundel writes: > 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. Thanks. Please detabi

Re: Problems with guile-sqlite3

2011-04-01 Thread Detlev Zundel
Hi David, > 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: > ER

Re: Problems with guile-sqlite3

2011-03-31 Thread David Pirotte
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 proc

Re: Problems with guile-sqlite3

2011-03-31 Thread Detlev Zundel
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

Re: Problems with guile-sqlite3

2011-03-31 Thread Andy Wingo
Hi :) On Thu 31 Mar 2011 16:28, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo writes: > >> It seems that the string->pointer code is doing the wrong thing: > > It works as advertised. :-) Sorry, I didn't mean to accuse that function, as I didn't even use it! (define (string->utf8-poin

Re: Problems with guile-sqlite3

2011-03-31 Thread Ludovic Courtès
Hello! Andy Wingo writes: > Interesting. It seems that the string->pointer code is doing the wrong thing: It works as advertised. :-) -- Scheme Procedure: string->pointer string Return a foreign pointer to a nul-terminated copy of STRING in the current locale encoding. The C stri

Re: Problems with guile-sqlite3

2011-03-31 Thread Detlev Zundel
Hi Andy, > On Thu 31 Mar 2011 00:52, Detlev Zundel writes: > >> | scheme@(guile-user)> (sqlite-open "mydb" SQLITE_OPEN_READONLY) >> | ;;; :2:0: warning: possibly unbound variable `SQLITE_OPEN_READONLY' >> | :1:0: In procedure #> input>:2:0 ()>: >> | :1:0: In procedure module-lookup: Unbound varia

Re: Problems with guile-sqlite3

2011-03-31 Thread Andy Wingo
On Thu 31 Mar 2011 00:52, Detlev Zundel writes: > | scheme@(guile-user)> (sqlite-open "mydb" SQLITE_OPEN_READONLY) > | ;;; :2:0: warning: possibly unbound variable `SQLITE_OPEN_READONLY' > | :1:0: In procedure #:2:0 > ()>: > | :1:0: In procedure module-lookup: Unbound variable: > SQLITE_OPEN_RE

Problems with guile-sqlite3

2011-03-30 Thread Detlev Zundel
Hi, having a all new shiny, I wanted to do some random tests with it and turned to Andys sqlite3 bindings[1]. Compiling and installing worked like a breeze but I'm having some beginners trouble. Looking into sqlite3.scm I gather that the following session should open up a connection to my "mydb"