Skip to content

G-2180: Never use quoted identifiers.

Major

Maintainability

Reason

Quoted identifiers make your code hard to read and maintain.

Example (bad)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
declare
   "sal+comm"     integer;
   "my constant"  constant integer := 1;
   "my exception" exception;
begin
   "sal+comm" := "my constant";
exception
   when "my exception" then
      null;
end;
/

Example (good)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
declare
   l_sal_comm     integer;
   co_my_constant constant integer := 1;
   e_my_exception exception;
begin
   l_sal_comm := co_my_constant;
exception
   when e_my_exception then
      null;
end;
/