aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-08-04 15:53:55 +0000
committerdrh <drh@noemail.net>2018-08-04 15:53:55 +0000
commit8c607191320f828c28418fc42fc64e21f1e3e911 (patch)
tree2550c6ee5e4ba4b5c1e36343c3002f4d9841f320 /src/expr.c
parent38ee2d9197a7a3c0e1c3567f2d99554e6e77f2c4 (diff)
downloadsqlite-8c607191320f828c28418fc42fc64e21f1e3e911.tar.gz
sqlite-8c607191320f828c28418fc42fc64e21f1e3e911.zip
Further logic simplifications that flow out of the omission of the column cache.
FossilOrigin-Name: 7d9072b027cc28dd8ecf5e2686d821017997445c15124eebe2839984622af4db
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/expr.c b/src/expr.c
index 841f2f536..889142d1e 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3238,12 +3238,7 @@ void sqlite3ExprCodeGetColumnOfTable(
/*
** Generate code that will extract the iColumn-th column from
-** table pTab and store the column value in a register.
-**
-** An effort is made to store the column value in register iReg. This
-** is not garanteeed for GetColumn() - the result can be stored in
-** any register. But the result is guaranteed to land in register iReg
-** for GetColumnToReg().
+** table pTab and store the column value in register iReg.
**
** There must be an open cursor to pTab in iTable when this routine
** is called. If iColumn<0 then code is generated that extracts the rowid.
@@ -3264,16 +3259,6 @@ int sqlite3ExprCodeGetColumn(
}
return iReg;
}
-void sqlite3ExprCodeGetColumnToReg(
- Parse *pParse, /* Parsing and code generating context */
- Table *pTab, /* Description of the table we are reading from */
- int iColumn, /* Index of the table column */
- int iTable, /* The cursor pointing to the table */
- int iReg /* Store results here */
-){
- int r1 = sqlite3ExprCodeGetColumn(pParse, pTab, iColumn, iTable, iReg, 0);
- if( r1!=iReg ) sqlite3VdbeAddOp2(pParse->pVdbe, OP_SCopy, r1, iReg);
-}
/*
** Generate code to move content from registers iFrom...iFrom+nReg-1