Fix [ 1907259 ] Function charat wrong in 331b

This commit is contained in:
Carlos Ruiz 2008-03-04 19:54:50 +00:00
parent de9a50a7e1
commit a653083331
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,3 @@
-- [ 1907259 ] Function charat wrong in 331b
-- just for postgres

View File

@ -0,0 +1,9 @@
-- [ 1907259 ] Function charat wrong in 331b
CREATE OR REPLACE FUNCTION charat(character varying, integer) RETURNS character varying
AS $_$
BEGIN
RETURN SUBSTR($1, $2, 1);
END;
$_$
LANGUAGE plpgsql;