mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Do not set OP_Column flags on the instructions generated by
sqlite3ExprCodeGetColumn() if the opcode generated is not really an OP_Column, which might happen if the column is virtual. Fix for ticket [b439bfcfb7deedc6] FossilOrigin-Name: 2401e04730a156aa48787b91af4e516406cb7635145e430be62fd16481816237
This commit is contained in:
@@ -3487,7 +3487,8 @@ int sqlite3ExprCodeGetColumn(
|
||||
assert( pParse->pVdbe!=0 );
|
||||
sqlite3ExprCodeGetColumnOfTable(pParse->pVdbe, pTab, iTable, iColumn, iReg);
|
||||
if( p5 ){
|
||||
sqlite3VdbeChangeP5(pParse->pVdbe, p5);
|
||||
VdbeOp *pOp = sqlite3VdbeGetOp(pParse->pVdbe,-1);
|
||||
if( pOp->opcode==OP_Column ) pOp->p5 = p5;
|
||||
}
|
||||
return iReg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user