On 7/9/2013 6:37 PM, Igor Korot wrote:
Hi, ALL,
Consider following code:

std::string query = "SELECT a FROM foo;";

sqlite3_prepare_v2( handle, query, -1, &stmt, 0 );
sqlite3_step( stmt );
int id = sqlite_column_int( stmt, 0 );
int code = sqlite3_column_int( stmt, 1 );

Shouldn't the engine assert in this case?

http://www.sqlite.org/c3ref/column_blob.html
If the SQL statement does not currently point to a valid row, or if the column index is out of range, the result is undefined.

--
Igor Tandetnik

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

Reply via email to