Skip to content

A safe truncating string append #57

@janihur

Description

@janihur

I suggest a string append subprogram that silently will truncate too long strings. This is usually wanted in reporting and logging scope.

Usage example:

declare
  v_str varchar2(5);
begin
  for i in 1 .. 10
  loop
    append(v_str, 'A');
  end loop;
  -- the value of v_str will be 'AA...' (assuming ... is a truncated mark)
end;
/

If the idea is accepted I can create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions