[Csync2] sqlite3 and _FILE_OFFSET_BITS=64 commited

Lars Ellenberg lars.ellenberg at linbit.com
Mon Aug 11 21:44:06 CEST 2008


On Mon, Aug 11, 2008 at 05:48:30PM +0200, Art -kwaak- van Breemen wrote:
> On Thu, Jun 19, 2008 at 04:38:06PM +0200, Lars Ellenberg wrote:
> > this is now committed as revision 399.
> > please, anyone in the position to do so,
> > try it and report any observations.
> 
> I've noticed that it works with:
> 3.2.1-1 (debian/sarge)
> 3.5.9-2 (debian/sid)
> but that it doesn't work with:
> 
> 3.3.8-1.1 (debian/etch)
> 
> > thanks again to Art van Breemen.
> Sorry!
> 
> Rationale to the patch:
> http://www.sqlite.org/c3ref/prepare.html
> It talks about nByte < 0, and nByte not negative. So 0 is not
> really good defined.
> 
> The patch is self explanatory I gues.
> 
> -- 
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in email?

> --- trunk/db.c	2008-06-20 13:52:03.000000000 +0200
> +++ build/db.c	2008-08-11 17:37:29.000000000 +0200
> @@ -248,7 +248,7 @@
>  
>  	while (1) {
>  		IFESQL3(
> -			rc = sqlite3_prepare(db, sql, 0, &stmt, 0);,
> +			rc = sqlite3_prepare(db, sql, -1, &stmt, 0);,
>  			rc = sqlite_compile(db, sql, 0, &vm, 0);
>  		)
>  		if ( rc != SQLITE_BUSY ) break;


thanks. committed

-- 
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :


More information about the Csync2 mailing list