mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Similar fix to the previous check-in, but this time for
sqlite3_preupdate_new(). FossilOrigin-Name: 9aaff764d508cbd9823f23cdf0c510255721bc5c09be481ebc60bd8902ceb8c5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user