Skip to content

Commit

Permalink
Fixes for Oracle 19c: invalid cast to integer
Browse files Browse the repository at this point in the history
This fixes the following bug for Oracle:
:    invalid positional variable `:', valid values start with 1
:        while executing
:    "ns_ora 0or1row nsdb0 {
:                select acs_permission.permission_p(:object_id, :party_id, :privilege)::integer from dual
:            }"
  • Loading branch information
gustafn committed Feb 15, 2022
1 parent ff22737 commit 5ed1a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/acs-tcl/tcl/acs-permissions-procs.tcl
Expand Up @@ -162,7 +162,7 @@ ad_proc -private permission::permission_p_not_cached {
# We have a per-request cache here
return [acs::per_request_cache eval -key acs-tcl.permission_p__cache-$party_id,$object_id,$privilege {
db_string select_permission_p {
select acs_permission.permission_p(:object_id, :party_id, :privilege)::integer from dual
select acs_permission.permission_p(:object_id, :party_id, :privilege) from dual
}
}]
}
Expand Down

0 comments on commit 5ed1a03

Please sign in to comment.