On 7/24/2012 9:27 PM, Arbol One wrote:
void mySQLite3Class::write(const Glib::ustring& sql_stmt, int pos,  int data
)throw(someException) {
     rc = sqlite3_prepare_v2(db, sql_stmt.c_str(), -1, &stmt, NULL);

     if(rc != SQLITE_OK) { throw(someException)    }

     rc = sqlite3_bind_int(stmt, pos, data);

     if(rc != SQLITE_OK) { throw(someException)   }
}

but this does not store anything in the database table.

A hint: which SQLite API function does createTable() call but write() doesn't?

Also, don't forget to sqlite3_finalize all prepared statements once you are done with them.
--
Igor Tandetnik

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

Reply via email to