Jay Sprenkle wrote:
On 4/6/06, Dennis Cote <[EMAIL PROTECTED]> wrote:
Jay,
No, he has the open call correct. He has a local pointer, he passes the
address of that pointer to sqlite3_open() and it allocates the sqlite3
structure and sets his pointer to point to it.
No need to change this. Derrell has identified his problem.
You're right. Thanks Dennis :)
I think I'll quit trying to do anything serious early in the morning...
Jay,
No big deal. I thought it was funny (well a little humorous anyway) that
you did exactly the same thing in the sample code you posted regarding
the prepare statement tutorial question (only a few minutes apart).
Here's some c++:
sqlite3* db;
sqlite3_stmt *pStmt;
int rc;
string str;
string sql;
sql = "SELECT Created, Subject, Body FROM News";
sql += " WHERE Created > ?";
sql += " ORDER BY Created LIMIT 6";
// connect to database
rc = sqlite3_open( DB, &db );
Have another cup of coffee. ;)
Dennis Cote