1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Further comment enhancements. No changes to code.

FossilOrigin-Name: d4562a9e7b1eaff41466210e3a0caaf374ec5a92
This commit is contained in:
drh
2016-08-20 21:11:25 +00:00
parent 76dbe7a8d0
commit d832da7f40
3 changed files with 13 additions and 7 deletions

View File

@@ -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;