diff options
author | drh <drh@noemail.net> | 2016-09-18 16:08:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-09-18 16:08:10 +0000 |
commit | 9e5eb9c8cc66320ec01298cc2e76ae6a1e29515a (patch) | |
tree | 0b928bf5c2a8af992d5487f4fb196856ced33980 /src/expr.c | |
parent | 598f7c59e140c244d616b8f7c882b7d17229f02c (diff) | |
download | sqlite-9e5eb9c8cc66320ec01298cc2e76ae6a1e29515a.tar.gz sqlite-9e5eb9c8cc66320ec01298cc2e76ae6a1e29515a.zip |
Revise the implementation of OP_Once so that it is smaller, faster, and uses
less memory. This also fixes an obscure bug introduced 3 days ago by check-in
[5990a1bdb4a073].
FossilOrigin-Name: 6bf5ba10d28f1b0a32aa9a560ae3143a1235eadb
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index abae812ea..14bde45bb 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1974,7 +1974,7 @@ static Select *isCandidateForInOpt(Expr *pX){ */ int sqlite3CodeOnce(Parse *pParse){ Vdbe *v = sqlite3GetVdbe(pParse); /* Virtual machine being coded */ - return sqlite3VdbeAddOp1(v, OP_Once, pParse->nOnce++); + return sqlite3VdbeAddOp0(v, OP_Once); } #ifndef SQLITE_OMIT_SUBQUERY |