incorrect data type in function

From: rapg12(at)gmail(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: incorrect data type in function
Date: 2016-05-21 14:00:46
Message-ID: 20160521140046.22591.24672@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: http://www.postgresql.org/docs/8.2/static/plpgsql-porting.html
Description:

on page :

http://www.postgresql.org/docs/current/static/plpgsql-porting.html

under 40.12.1. Porting Examples -> Example 40-8. Porting a Simple Function
from PL/SQL to PL/pgSQL
======================================
CREATE OR REPLACE FUNCTION cs_fmt_browser_version(v_name varchar,
v_version varchar)
RETURN varchar IS
BEGIN
IF v_version IS NULL THEN
RETURN v_name;
END IF;
RETURN v_name || '/' || v_version;
END;
/
show errors;
======================================

The data types in the function parameter and the returned type were seems
typed incorrectly or missed typo ... in ORACLE there is no varchar, but
there is varchar2

And since I AM away from ORACLE for more than decade, I might be wrong.

Appreciate your efforts in keeping the best as open source.

Thanks,

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2016-05-21 17:02:43 Re: Is this example regarding aggregates sourced by subquery correct?
Previous Message David G. Johnston 2016-05-20 22:41:33 Re: Is this example regarding aggregates sourced by subquery correct?