All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.plsqlopen.rules.plsql.ConcatenationWithNull.html Maven / Gradle / Ivy

The newest version!

Concatenating a VARCHAR2 value with NULL is no-op. So, the NULL value should be removed.

A concatenation of any other datatype with NULL will cause a implicit cast to VARCHAR2. If this is the desired behavior, replace the concatenation by a TO_CHAR call to make the intention explicit. See this example:

var := NVL(''||id, 'Empty');

You should use this:

var := NVL(TO_CHAR(id), 'Empty');




© 2015 - 2024 Weber Informatics LLC | Privacy Policy