DataGrip
 
Get DataGrip
You are viewing the documentation for an earlier version of DataGrip.

Code Inspection: Constant condition

Last modified: 13 May 2022

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.