diff options
author | drh <> | 2025-06-24 18:27:59 +0000 |
---|---|---|
committer | drh <> | 2025-06-24 18:27:59 +0000 |
commit | a67c71224f5821547040b637aad7cddf4ef0778a (patch) | |
tree | 9bd10fd5e1b05ec2e68c9707f5afeda6e97d88d1 /src | |
parent | 66cd200ede04bbe2c44729c3a4c55433430c4214 (diff) | |
download | sqlite-a67c71224f5821547040b637aad7cddf4ef0778a.tar.gz sqlite-a67c71224f5821547040b637aad7cddf4ef0778a.zip |
Similar fix to the previous check-in, but this time for
sqlite3_preupdate_new().
FossilOrigin-Name: 9aaff764d508cbd9823f23cdf0c510255721bc5c09be481ebc60bd8902ceb8c5
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c index 02229246a..af90d4497 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -2350,6 +2350,8 @@ int sqlite3_preupdate_new(sqlite3 *db, int iIdx, sqlite3_value **ppValue){ } if( p->pPk && p->op!=SQLITE_UPDATE ){ iStore = sqlite3TableColumnToIndex(p->pPk, iIdx); + }else if( iIdx >= p->pTab->nCol ){ + return SQLITE_MISUSE_BKPT; }else{ iStore = sqlite3TableColumnToStorage(p->pTab, iIdx); } |