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

Fixes to internal comments. No changes to code or documentation.

FossilOrigin-Name: 1489b196ce82cddf7360aff6c89219ca25e666187f0f5ff6419ba3b504cdef8d
This commit is contained in:
drh
2021-11-26 15:08:55 +00:00
parent 2df026a549
commit e574a9233c
4 changed files with 15 additions and 15 deletions

View File

@@ -4953,11 +4953,11 @@ static u8 minMaxQuery(sqlite3 *db, Expr *pFunc, ExprList **ppMinMax){
** does match this pattern, then a pointer to the Table object representing
** <tbl> is returned. Otherwise, NULL is returned.
**
** This routine a condition for the count optimization. A correct answer
** is obtained (though perhaps more slowly) if this routine returns NULL when
** it could have returned a table pointer. But returning the pointer when
** NULL should have been returned can result in incorrect answers and/or
** crashes. So, when in doubt, return NULL.
** This routine checks to see if it is safe to use the count optimization.
** A correct answer is still obtained (though perhaps more slowly) if
** this routine returns NULL when it could have returned a table pointer.
** But returning the pointer when NULL should have been returned can
** result in incorrect answers and/or crashes. So, when in doubt, return NULL.
*/
static Table *isSimpleCount(Select *p, AggInfo *pAggInfo){
Table *pTab;