diff options
author | drh <drh@noemail.net> | 2014-08-01 21:12:35 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-08-01 21:12:35 +0000 |
commit | 4c259e9f40a0580c60455f9f4b7492f1d99749a7 (patch) | |
tree | 5fcd06b1d4693dde1fcd6acce558ab7dcb9fcb36 /src/expr.c | |
parent | 6be515ebe0c6976352efd82cd6cddebe4b43361f (diff) | |
download | sqlite-4c259e9f40a0580c60455f9f4b7492f1d99749a7.tar.gz sqlite-4c259e9f40a0580c60455f9f4b7492f1d99749a7.zip |
A better comment on the generated code for the NULL-in-RHS-of-IN detection
logic.
FossilOrigin-Name: 9bc1c730a366e75b760b58e7a343d39165b2a469
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c index 6440dea39..c32affe34 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1476,8 +1476,8 @@ int sqlite3CodeOnce(Parse *pParse){ } /* -** Generate code that checks the single-column index table iCur to see if -** contains any NULL entries. Cause the register at regHasNull to be set +** Generate code that checks the left-most column of index table iCur to see if +** it contains any NULL entries. Cause the register at regHasNull to be set ** to a non-NULL value if iCur contains no NULLs. Cause register regHasNull ** to be set to NULL if iCur contains one or more NULL values. */ @@ -1487,7 +1487,7 @@ static void sqlite3SetHasNullFlag(Vdbe *v, int iCur, int regHasNull){ j1 = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v); sqlite3VdbeAddOp3(v, OP_Column, iCur, 0, regHasNull); sqlite3VdbeChangeP5(v, OPFLAG_TYPEOFARG); - VdbeComment((v, "<maybe-NULL?>")); + VdbeComment((v, "first_entry_in(%d)", iCur)); sqlite3VdbeJumpHere(v, j1); } |