org.sonar.l10n.plsqlopen.rules.plsql.ToDateWithoutFormat.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zpa-checks Show documentation
Show all versions of zpa-checks Show documentation
Z PL/SQL Analyzer :: Checks
The newest version!
Always specify the date format in TO_DATE calls.
Noncompliant Code Example
begin
var := to_date('2015-01-01');
end;
Compliant Solution
begin
var := to_date('2015-01-01', 'YYYY-MM-DD');
end;