ArbolOne <arbol...@gmail.com> wrote: > I would like to know how does one tell SQLite3 to > read the subsequent rows using the C/C++ API.
One calls sqlite3_step whenever one wishes to advance to the next row. > void mySQLite3::setStmt(const Glib::ustring& s) { > SQLStatement = s; > if (mystmt == NULL) { rc = sqlite3_prepare_v2(db, SQLStatement.c_str(), -1, > &mystmt,NULL); } > if(rc != SQLITE_OK) {...} > rc = sqlite3_step(mystmt); > } You seem to be calling sqlite3_step when sqlite3_prepare_v2 has just failed. This makes no sense. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users