-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Erik de Castro Lopo wrote: > printf ("Before : %s\n", sqlite3_errmsg (pdb)) ; > sqlite3_exec (pdb, stmt, NULL, NULL, NULL) ; > printf ("After : %s\n", sqlite3_errmsg (pdb)) ; > > The query that happens before this works as expected and then the > above results in: > > Before : not an error > After : unable to open database file
That is not how you should get error messages when using sqlite3_exec. The last parameter is how you do it: http://www.sqlite.org/c3ref/exec.html Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkt5vP8ACgkQmOOfHg372QQL+gCgyeh7tXKgYBvsW/hQKActsGba LbkAnjHkd2FV0CLApWkzboymU/eg3yQu =tJmh -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users