On Sun, Jun 17, 2012 at 5:14 PM, Arbol One <arbol...@programmer.net> wrote:

>  rc = sqlite3_open_v2(db_name.c_str(),  *??1*, &db, SQLITE_OPEN_READWRITE
> | SQLITE_OPEN_CREATE,  *??2*);
>

That is not the signature for open_v2:

http://www.sqlite.org/c3ref/open.html


>  if(rc != SQLITE_OK){
>  std::cout << "error one" << std::endl;
>  exit(-1);
>

Don't forget sqlite3_close() here! It must be called even on error.


>  What do I input as  *??1* and  *??2* ? and do I need to grab ??1 to later
> use it?
>

You seem to have inserted an extra argument (??1) where the db handle (&db)
goes. The final parameter should be NULL unless you specifically know
otherwise (you would know if that were the case).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to