1
0
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:
dan
2014-09-15 12:18:29 +00:00
parent d54e06ca5e
commit 13ce7931f7
5 changed files with 45 additions and 10 deletions

View File

@@ -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);