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

Check for foreign key constraint errors prior to returning the results from

a RETURNING clause.  See [forum:/forumpost/793beaf322|forum post 793beaf322].

FossilOrigin-Name: a818ba2ed635b91e279dde44236fc7446a33db2b46c9409b67021248c01bf4e5
This commit is contained in:
drh
2021-12-01 19:17:14 +00:00
parent 4baf43ff64
commit 3b26b2b56b
9 changed files with 52 additions and 35 deletions

View File

@@ -1121,9 +1121,7 @@ void sqlite3Update(
** that information.
*/
if( regRowCount ){
sqlite3VdbeAddOp2(v, OP_ChngCntRow, regRowCount, 1);
sqlite3VdbeSetNumCols(v, 1);
sqlite3VdbeSetColName(v, 0, COLNAME_NAME, "rows updated", SQLITE_STATIC);
sqlite3CodeChangeCount(v, regRowCount, "rows updated");
}
update_cleanup: