On May 18, 2008, at 12:01 AM, Shawn Wilsher wrote:

> On Sat, May 17, 2008 at 10:13 AM, Dan <[EMAIL PROTECTED]> wrote:
>> How are you going to 'clone' the statement objects to pass to
>> the second database handle?
> Our wrapper around the statement object already stores the string of
> the sql statement, so that part is easy.  Looks like we'll have to
> keep track of bound parameters as well now.

By recompiling it for the new connection. Fair enough. If you use
sqlite3_prepare_v2() to create a statement, you could also use
sqlite3_sql() to retrieve the original text of the SQL in utf-8
encoding:

   const char *sqlite3_sql(sqlite3_stmt *pStmt);

Dan.


> Cheers,
>
> Shawn Wilsher
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to