apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Rossi <bob_ro...@cox.net>
Subject Re: sqlite3 and postgresql
Date Tue, 20 May 2008 01:32:07 GMT
On Mon, May 19, 2008 at 08:58:32AM +1000, Bojan Smojver wrote:
> On Sat, 2008-05-17 at 09:07 -0400, Bob Rossi wrote:
> 
> > I've been using sqlite3 dbd for some time now. I find that the function
> > apr_dbd_get_row,
> >   http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___d_b_d.html#gd4cdc5f4e8981b93f5a467a8c8a768f1
> > is 1 based. That is, 1 is the first row returned from a query. However,
> > I just started using postgresql, and I find that apr_dbd_get_row is 0
> > based. That is, 0 is the first row returned from the query.
> 
> This should now be fixed in both the trunk and 1.3.x branch.
> 
> We really _do_ appreciate your testing and suggestions!

I can confirm that the latest 1.3.x snapshot on linux, for both sqlite3
and postgresql use a 1 based row index. I removed my hack, and things
work great. I'm going to test windows now, could take some time.
(perhaps get results tomorrow).

Bob Rossi

Mime
View raw message