On 5/24/2013 8:10 AM, Simon Wei wrote:
I use two databases in a application (.exe):

sqlite3_open16 (“db1.db”, db_1);  // open first
sqlite3_open16 (“db2.db”, db_2);  // open second

when I INSERT some data into db_1, data is actually inserted into db_2.

Is this my bug or Sqlite’s bug?

I'm 99.9% sure it's a bug in your code somewhere. Like you allow the variable holding one database handle to be overwritten with the other, or something. For what it's worth, I have an application that routinely juggles several database handles (multiple database files, sometimes with more than one connection to each) and never had any problems.
--
Igor Tandetnik

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

Reply via email to