aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-09-02 18:40:33 +0000
committerdrh <drh@noemail.net>2015-09-02 18:40:33 +0000
commit0ff287fb0137268f9f7658cf17b44bb6937f1d0c (patch)
tree5de50541bc950fe519d3621de1df3a5e9932923c /src/select.c
parent2991ba050b66f789dd8368987d265d8a8ff5aa88 (diff)
downloadsqlite-0ff287fb0137268f9f7658cf17b44bb6937f1d0c.tar.gz
sqlite-0ff287fb0137268f9f7658cf17b44bb6937f1d0c.zip
Add and use the sqlite3VdbeChangeOpcode() routine. Simplify the implementation
of the other sqlite3VdbeChange*() routines. FossilOrigin-Name: 0a5b00e493efae58252f9fc7bde5a469645942d5
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 2e8e4cf8b..9e00420c5 100644
--- a/src/select.c
+++ b/src/select.c
@@ -5075,7 +5075,7 @@ int sqlite3Select(
p->nSelectRow = LARGEST_INT64;
computeLimitRegisters(pParse, p, iEnd);
if( p->iLimit==0 && sSort.addrSortIndex>=0 ){
- sqlite3VdbeGetOp(v, sSort.addrSortIndex)->opcode = OP_SorterOpen;
+ sqlite3VdbeChangeOpcode(v, sSort.addrSortIndex, OP_SorterOpen);
sSort.sortFlags |= SORTFLAG_UseSorter;
}