Re: [sqlite] Header pointers in table callback

2011-07-11 Thread Igor Tandetnik
On 7/11/2011 11:04 AM, Prakash Reddy Bande wrote: > We were looking at the ways we can optimize our application. Our app > does a simple sqlite3_exec and sends the callback as below. The data > is just a map > > > int sqlite3TableCallback(void* data, int ncols, char** values, char** headers) > > {

Re: [sqlite] Header pointers in table callback

2011-07-11 Thread Richard Hipp
On Mon, Jul 11, 2011 at 11:04 AM, Prakash Reddy Bande wrote: > > Well, the bottom line, is it safe to assume that char** headers will be > pointing to the same address through out the query (i.e. each time callback > is called for a matching row). > We cannot positively, absolutely guarantee that

[sqlite] Header pointers in table callback

2011-07-11 Thread Prakash Reddy Bande
Hi, We were looking at the ways we can optimize our application. Our app does a simple sqlite3_exec and sends the callback as below. The data is just a map > int sqlite3TableCallback(void* data, int ncols, char** values, char** headers) { map >& table = *(( map >*) data);