diff options
author | drh <drh@noemail.net> | 2016-08-20 21:11:25 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-08-20 21:11:25 +0000 |
commit | d832da7f40207b77fe2d313b2f7a5b8e6cb0ef78 (patch) | |
tree | 6fd87a11d6891ba83fafa5ed7a4847cd6ed44e0e /src/expr.c | |
parent | 76dbe7a8d0feac9a600e6425274f65187d378cbd (diff) | |
download | sqlite-d832da7f40207b77fe2d313b2f7a5b8e6cb0ef78.tar.gz sqlite-d832da7f40207b77fe2d313b2f7a5b8e6cb0ef78.zip |
Further comment enhancements. No changes to code.
FossilOrigin-Name: d4562a9e7b1eaff41466210e3a0caaf374ec5a92
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index 69754fada..c92179d5e 100644 --- a/src/expr.c +++ b/src/expr.c @@ -311,6 +311,12 @@ static int codeCompare( /* ** Return true if expression pExpr is a vector, or false otherwise. +** +** A vector is defined as any expression that results in two or more +** columns of result. Every TK_VECTOR node is an vector because the +** parser will not generate a TK_VECTOR with fewer than two entries. +** But a TK_SELECT might be either a vector or a scalar. It is only +** considered a vector if it has two or more result columns. */ int sqlite3ExprIsVector(Expr *pExpr){ return sqlite3ExprVectorSize(pExpr)>1; |