mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-21 09:00:59 +03:00
Have the sqlite3_index_writer() VMs check that the final values of records inserted into indexes on rowid tables are integers.
FossilOrigin-Name: cca376bff3510dc5e99fc5824862c3471ceced16
This commit is contained in:
@@ -549,6 +549,11 @@ int sqlite3_index_writer(
|
||||
}
|
||||
regRec = ++pParse->nMem;
|
||||
|
||||
/* If this is a rowid table, check that the rowid field is an integer. */
|
||||
if( HasRowid(pTab) ){
|
||||
sqlite3VdbeAddOp2(v, OP_MustBeInt, pIdx->nColumn, 0);
|
||||
}
|
||||
|
||||
if( bDelete==0 ){
|
||||
sqlite3VdbeAddOp4(v, OP_MakeRecord, 1, pIdx->nColumn, regRec, zAffinity, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user