The NOT NULL strength reduction optimization from [de9c86c9e4cdb34f] should
commitff950036c2c3184660be1827a61370f8f6775efd
authorD. Richard Hipp <drh@hwaci.com>
Fri, 8 Mar 2024 21:37:18 +0000 (8 21:37 +0000)
committerD. Richard Hipp <drh@hwaci.com>
Fri, 8 Mar 2024 21:37:18 +0000 (8 21:37 +0000)
treec49408d5d71db5ba3765133963b4cba2bc45d553
parent133bc8c12ed11f22e65d224ac1d64240535d9090
The NOT NULL strength reduction optimization from [de9c86c9e4cdb34f] should
be applied to the WHERE clause only.  Otherwise, the operand of the IS NULL
or IS NOT NULL operator might be a reference to a bare column of an
aggregate table, and we can't tell if it is NULL or not based only on its
NOT NULL attribute.  [forum:/forumpost/440f2a2f17|Forum post 440f2a2f17].
src/resolve.c
src/sqliteInt.h
test/notnull2.test