You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2005/08/11 04:32:21 UTC

apr-dbd, sqlite, and the tests

So I'm thrilled to find that we've got dbd drivers for sqlite2 and 
sqlite3, but somewhat less thrilled to find that they don't seem to 
work.  Running the dbd test program for them results in failures for 
sqlite3 and a segfault for sqlite2, and valgrind reveals that both seem 
to be depending on uninitialized memory deep in the guts of sqlite...

Also, the testdbd.c program that was recently committed doesn't seem to 
actually build...

Has anyone been able to get this stuff to work?

-garrett

Re: apr-dbd, sqlite, and the tests

Posted by Nick Kew <ni...@webthing.com>.
On Thursday 11 August 2005 03:32, Garrett Rooney wrote:

> Also, the testdbd.c program that was recently committed doesn't seem to
> actually build...

Hmmm, the original (very perfunctory) test program I wrote is now called
test/dbd.c, and appears to want minor updating to deal with not having
sight of apr_dbd_driver_t.  But I guess that's fairly trivial.

I don't know anything about test/testdbd.c.

-- 
Nick Kew

Re: apr-dbd, sqlite, and the tests

Posted by Joe Orton <jo...@redhat.com>.
On Thu, Aug 11, 2005 at 10:03:45AM +0100, Joe Orton wrote:
> On Wed, Aug 10, 2005 at 07:32:21PM -0700, Garrett Rooney wrote:
> > So I'm thrilled to find that we've got dbd drivers for sqlite2 and 
> > sqlite3, but somewhat less thrilled to find that they don't seem to 
> > work.  Running the dbd test program for them results in failures for 
> > sqlite3 and a segfault for sqlite2, and valgrind reveals that both seem 
> > to be depending on uninitialized memory deep in the guts of sqlite...
> > 
> > Also, the testdbd.c program that was recently committed doesn't seem to 
> > actually build...
> >
> > Has anyone been able to get this stuff to work?
> 
> With your build fixes, the tests but it looks like some of the 
> "transaction" tests and the prepared query/select tests are failing for 
> me too here with sqlite3 (version 3.1.2, x86).

Oh, I hadn't seen the testdbd.c tests - those all pass, it's just the 
test/dbd.c tests which seem to fail for me.

joe

Re: apr-dbd, sqlite, and the tests

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Aug 10, 2005 at 07:32:21PM -0700, Garrett Rooney wrote:
> So I'm thrilled to find that we've got dbd drivers for sqlite2 and 
> sqlite3, but somewhat less thrilled to find that they don't seem to 
> work.  Running the dbd test program for them results in failures for 
> sqlite3 and a segfault for sqlite2, and valgrind reveals that both seem 
> to be depending on uninitialized memory deep in the guts of sqlite...
> 
> Also, the testdbd.c program that was recently committed doesn't seem to 
> actually build...
>
> Has anyone been able to get this stuff to work?

With your build fixes, the tests but it looks like some of the 
"transaction" tests and the prepared query/select tests are failing for 
me too here with sqlite3 (version 3.1.2, x86).

joe