1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix for #2497. Set the database error code to the return value of sqlite3_step(). (CVS 4155)

FossilOrigin-Name: b01fda5f50e40b6122faf169c44486bde7ffe16c
This commit is contained in:
danielk1977
2007-07-12 13:18:05 +00:00
parent d8e9b6238e
commit 612642de32
4 changed files with 41 additions and 10 deletions

View File

@@ -275,6 +275,7 @@ end_of_step:
if( p->zSql && (rc&0xff)<SQLITE_ROW ){
/* This behavior occurs if sqlite3_prepare_v2() was used to build
** the prepared statement. Return error codes directly */
sqlite3Error(p->db, p->rc, 0);
return p->rc;
}else{
/* This is for legacy sqlite3_prepare() builds and when the code