Hello again, your answer in fact means that - although I specify my string is zero terminated - the n-Member of the Mem-structure is indispensable when inserting data to the DB?
Bernhard ----- Original Message ----- From: "D. Richard Hipp" <[EMAIL PROTECTED]> To: "Bernhard DÃbler" <[EMAIL PROTECTED]> Cc: <sqlite-users@sqlite.org> Sent: Monday, February 28, 2005 10:03 PM Subject: Re: [sqlite] Mem-Structure On Mon, 2005-02-28 at 20:03 +0100, Bernhard DÃbler wrote: > > vdbemem.c (2004 May 26) reads at about line 650: > > if( pMem->enc==SQLITE_UTF8 && (flags & MEM_Term) ){ > assert( strlen(pMem->z)<=pMem->n ); > assert( pMem->z[pMem->n]==0 ); > } > Strictly speaking, assert() is never needed. These two asserts were probably put in at different times. The second assert is the more restrictive of the two. If either were eliminated it would be the first.