Domingo Alvarez Duarte <[EMAIL PROTECTED]> writes:
> When trying write a function in plpgsql I'm getting behavior that
> probably isn't the corect one.
It works as expected if you declare v_sep as varchar rather than char.
I think plpgsql may be interpreting
v_sep char;
as decl
When trying write a function in plpgsql I'm getting behavior that
probably isn't the corect one.
in the function bellow:
-
-- split the given key
create function dad_char_key_split(
varchar,-- char_key
integer,-- subkey_len
char-- separator