Roger Binns wrote:

> -----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

I tried it that way as well and got the exact same 'unable to open database
file' error.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to