You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code violates the rule "G-9501: Never use parameter in string expression of dynamic SQL. Use asserted local variable instead.". But no violation is detected
create or replace procedure exec_sql(in_sql invarchar2) is
co_sql constant varchar2(1000char) := in_sql;
begin
execute immediate co_sql;
end exec_sql;
/
This code detects a violation.
create or replace procedure exec_sql(in_sql invarchar2) is
l_sql varchar2(1000char) := in_sql;
begin
execute immediate l_sql;
end exec_sql;
/
The text was updated successfully, but these errors were encountered:
The following code violates the rule "G-9501: Never use parameter in string expression of dynamic SQL. Use asserted local variable instead.". But no violation is detected
This code detects a violation.
The text was updated successfully, but these errors were encountered: