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

Code Inspection: Constant expression

Last modified: 13 May 2022

Reports conditions and expressions that are always true, false or null.

Example (MySQL):

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

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