On 5/29/15, Sairam Gaddam <gaddamsairam at gmail.com> wrote: > How to correctly copy the contents of original VdbeOp aOp which is created > by SQlite for some query into another custom VdbeOp object.
You cannot, in general, do that. The P4 operand often contains information that must be freed when no longer needed, meaning that if the original VdbeOp object is deleted, your copy will have content deleted out from under it. Also the P4 operand often contains information that is specific to a particular database connection. > > I tried by normally copying the contents one by one but it resulted in > errors. > > And how to correctly allocate memory to the custom VdbeOp object and how to > free the original aOp. > > So can anyone suggest me the correct way of doing those ? > > > > > Thanks in advance. > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp drh at sqlite.org