Code Inspection: Insert NULL into NOT NULL column
Reports cases when you insert NULL values into columns that accept only NOT NULL values.
Example (Microsoft SQL Server):
You cannot insert NULL values in
col2because they are defined as NOT NULL. If you run the script as is, you will receive an error. To fix this code, replace NULL in the VALUES part with some values (for example,
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.