Inspectopedia
 
2024.3

Constant condition

Warning
Last modified: 03 December 2024

Reports conditions in WHERE or JOIN clauses that are always TRUE or always FALSE.

Example (MySQL):

The 'Cat' = 'Cat' is always true and will be reported.