Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger.append_param raises error when p_val is varchar2 longer than 4000 chars #220

Open
ainielse opened this issue Oct 1, 2018 · 0 comments

Comments

@ainielse
Copy link

ainielse commented Oct 1, 2018

rec_param.val is of type varchar2(4000)


type rec_param is record(
name varchar2(255),
val varchar2(4000));

append_param accepts any length varchar2 for p_val, but raises an error when length(p_val) > 4000.

Recommend substring p_val to 4000 characters as shown below.

procedure append_param(
p_params in out nocopy logger.tab_param,
p_name in varchar2,
p_val in varchar2
)
as
l_param logger.rec_param;
begin
$if $$no_op $then
null;
$else
l_param.name := p_name;
l_param.val := substr(p_val, 1, 4000); -- <============
p_params(p_params.count + 1) := l_param;
$end
end append_param;

@martindsouza martindsouza added this to the 3.2.0 milestone Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants