Hi,

What we are doing in short is below (using Sqlite 3.3.13).

Select id, data from msgTable;  // ok - returns 100
        tid = sqlite3_column_int;       
        data = sqlite3_column_bytes;    
        // make a copy of the bytes     
        // update the byte values       
        update msgTable set data=new data where id=tid; //ok - returns 101
        sqlite3_step    // not ok 

Sqlite3_step, crashes because (BtCursor *pCur)->pPage is null in
sqlite3BtreeNext. 

I read somewhere that its possible to update while we are in a select. Is
this possible? 
Or are there some other api call, which I need to call before sqlite3_step
is called?. 

Both the statements are prepared using sqlite3_prepare_v2 and values are
assigned using the bind functions.

Thanks
karthik


****************************************************************************
****************************
 This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!




-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to