Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit d24bd91

Browse files
Fix violations of G-7460
1 parent 0696a2c commit d24bd91

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • docs/4-language-usage/7-stored-objects/4-functions

docs/4-language-usage/7-stored-objects/4-functions/g-7430.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1313
create 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
3032
create 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
5054
create 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;

0 commit comments

Comments
 (0)