47 lines
835 B
Plaintext
47 lines
835 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
declare
|
|
my_user VARCHAR2(30);
|
|
my_date VARCHAR2(30);
|
|
begin
|
|
my_user := user();
|
|
my_date := sysdate(); -- Noncompliant, the value of my_date is never read
|
|
dbms_output.put_line('User:' || my_user || ', date: ' || my_user);
|
|
end;
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
declare
|
|
my_user VARCHAR2(30);
|
|
my_date VARCHAR2(30);
|
|
begin
|
|
my_user := user();
|
|
my_date := sysdate();
|
|
dbms_output.put_line('User:' || my_user || ', date: ' || my_date);
|
|
end;
|
|
----
|
|
|
|
include::../exceptions.adoc[]
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|