Inspectopedia 2024.3 Help

SQL

Adding not null column without default value   New in this release

Reports attempts to create NOT NULL columns without DEFAULT values.

Aggregate-related problems   New in this release

Reports invalid usages of SQL aggregate functions.

Ambiguous reference   New in this release

Reports columns that have identical names but belong to different tables.

Auto-increment duplicate   New in this release

Reports tables that contain two columns with an automatic increment.

Check using clause columns   New in this release

Reports columns in the USING clause that does not exist in both tables.

Column is shadowed by alias   New in this release

Reports SELECT aliases with names that match column names in the FROM clause.

Column should be in group by clause   New in this release

Reports columns that are not in the GROUP BY clause or inside an aggregate function call.

Constant condition  

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

Constant expression   New in this release

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

Current console schema introspected   New in this release

Reports schemas and databases in the current session that are not introspected.

Delete or update statement without where clauses   New in this release

Reports usages of DELETE or UPDATE statements without WHERE clauses.

Deprecated type   New in this release

Reports usages of types that are deprecated and might disappear in future versions of DBMS.

Duplicating column name in SELECT   New in this release

Reports duplicated names of column aliases in SELECT lists.

Each derived table should have alias   New in this release

Reports derived tables without aliases.

Excessive JOIN count   New in this release

Reports queries with excessive number of JOINS.

Function signature   New in this release

Reports signature issues for built-in functions.

Identifier should be quoted   New in this release

Reports situations when you use SQL reserved keywords as identifier names in your query.

Ill-formed date/time literals   New in this release

Reports errors in date and time literals.

Illegal cursor state   New in this release

Reports illegal cursor states inside SQL routines.

Implicit string truncation   New in this release

Reports variables that exceed the defined length in characters.

Index is dependent on column   New in this release

Reports cases when you try to drop columns from indexed tables.

Insert NULL into NOT NULL column   New in this release

Reports cases when you insert NULL values into columns that accept only NOT NULL values.

Insertion into generated columns   New in this release

Reports INSERT statements that assign values to generated columns.

Misleading references   New in this release

Reports ambiguous references in SQL code.

Missing column aliases   New in this release

Reports queries without explicit aliases in output expressions (for example, in the SELECT statement).

Missing return statement   New in this release

Reports functions that have no RETURN statements.

Multiple row limiting/offset clauses in queries   New in this release

Reports usages of multiple row limiting clauses in a single query.

Named arguments should be used   New in this release

Reports arguments that are used without names in routine calls.

No data sources configured   New in this release

Reports the absence of data sources in the Database tool window (View | Tool Windows | Database).

Null comparison   New in this release

Reports comparisons with NULL that can be replaced with IS NULL or IS NOT NULL operators.

Redundant ELSE NULL clause   New in this release

Reports redundant ELSE NULL clauses.

Redundant alias expressions   New in this release

Reports alias expressions that duplicate names of columns in tables and might be redundant.

Redundant code in COALESCE call   New in this release

Reports all the arguments except for the first expression that does not evaluate to NULL in COALESCE functions.

Redundant ordering direction   New in this release

Reports redundant ordering directions like ASC and DESC in ORDER BY clauses.

Redundant row limiting in queries   New in this release

Reports redundant row limiting clauses like FETCH and LIMIT in queries.

SQL dialect detection   New in this release

Reports situations when a dialect is not assigned to an SQL file.

SQL source modification detection   New in this release

Reports situations when source code of a database object has been changed.

Statement with side effects  

Reports statements that might lead to modification of a database during a read-only connection.

Suspicious code in triggers   New in this release

Reports incorrect usages of transition table variables in triggers.

Types compatibility   New in this release

Reports type-related errors.

Unicode usage in SQL   New in this release

Reports string literals that use national characters without the N prefix.

Unreachable code  

Reports unreachable statements inside SQL routines.

Unresolved reference  

Reports unresolved SQL references.

Unsafe 'join' clause in 'delete' statement   New in this release

Reports missing conditional checks for statements that might modify the whole database.

Unused common table expression   New in this release

Reports unused common table expressions (CTE) inside the query.

Unused subquery item   New in this release

Reports columns, aliases, and other subquery items that are not referenced in the outer query expression.

Unused variable  

Reports unused arguments, variables, or parameters.

Usages of GOTO statements   New in this release

Reports usages of backward GOTO statements and GOTO statements used to exit a loop.

Use of transaction management statements in triggers   New in this release

Reports usages of transaction management statements like COMMIT or ROLLBACK in trigger bodies.

Using CASE instead of COALESCE function and vice versa   New in this release

Reports situations when CASE and COALESCE calls are interchangeable.

Using CASE instead of conditional function and vice versa   New in this release

Reports situations when CASE and IF are interchangeable.

Using of named and positional arguments   New in this release

Reports calls in which positional arguments go after the named ones.

VALUES clause cardinality   New in this release

Reports situations when a number of parameters in VALUES does not match a number of columns in a target table.

Last modified: 03 December 2024