This repository was archived by the owner on Feb 2, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
docs/4-language-usage/7-stored-objects/4-functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ A function should have a single point of entry as well as a single exit-point.
1111
1212``` sql
1313create or replace package body my_package is
14- function my_function(in_value in pls_integer) return boolean is
14+ function my_function(in_value in pls_integer) return boolean
15+ deterministic
16+ is
1517 co_yes constant pls_integer := 1 ;
1618 begin
1719 if in_value = co_yes then
@@ -28,7 +30,9 @@ end my_package;
2830
2931``` sql
3032create or replace package body my_package is
31- function my_function(in_value in pls_integer) return boolean is
33+ function my_function(in_value in pls_integer) return boolean
34+ deterministic
35+ is
3236 co_yes constant pls_integer := 1 ;
3337 l_ret boolean ;
3438 begin
@@ -48,7 +52,9 @@ end my_package;
4852
4953``` sql
5054create or replace package body my_package is
51- function my_function(in_value in pls_integer) return boolean is
55+ function my_function(in_value in pls_integer) return boolean
56+ deterministic
57+ is
5258 co_yes constant pls_integer := 1 ;
5359 begin
5460 return in_value = co_yes;
You can’t perform that action at this time.
0 commit comments