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

Code Inspection: Unreachable code

Last modified: 13 May 2022

Reports unreachable statements inside SQL routines.

Example (Microsoft SQL Server):

In Microsoft SQL Server, the THROW statement raises an exception and transfers execution to the CATCH block of the TRY...CATCH construct. Therefore, the RETURN 1; part will never be executed.