plsql - PLS-00103 on package body -
i've created package spec , body , when execute script no errors. package body stays in invalid state. can't understand why, can please help?
here's code:
create or replace package body config_module_api function apply_rules(i_event_rowid in varchar2, i_event_table_name in varchar2, i_event_operation in varchar2, o_event_stage out cfg_event_stage, o_status_code out varchar, o_error_msg out varchar) return boolean begin --no code yet return null; end apply_rules; procedure test_rules(i_filter_id number, i_event_table_name varchar2, o_sql_stmt out varchar, o_status_code out varchar, o_error_msg out varchar) begin --no code yet end test_rules; end config_module_api; and here's exception whenever check stack trace:
compilation errors package body myshcema.config_module_api error: pls-00103: encountered symbol "end" when expecting 1 of following: ( begin case declare exit goto if loop mod null pragma raise return select update while <an identifier> <a double-quoted delimited-identifier> <a bind variable> << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge line: 20 text: end test_rules; what missing? (my package spec, works fine.)
you need null statement after begin , before end test_rules (where says no code yet.
begin null; end test_rules;
Comments
Post a Comment