Search Postgresql Archives

Oracle conversion questions - TYPE's and ARRAY's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All;

We are running an Oracle conversion via ora2pg

the TYPE's come out like this:

CREATE OR REPLACE TYPE  "CUST_ARRAY_TBL" as table of varchar2(4000);
or
CREATE OR REPLACE TYPE   "STRTAB" as table of varchar2(4000 char);

The sqlplus code wants to use these types as array's like this:

BEGIN

...


myArrList := load_my_type();
myArrList.EXTEND(1);
myArrListSpecific := load_my_cust_arr_type();
myArrListSpecific.EXTEND(1);


IF inv_unpaid = 1 THEN
myArrListSpecific(myArrListSpecific.Last).FieldName := 'CUST_INV_ID';
myArrListSpecific(myArrListSpecific.Last).FieldValue := arr_desc_str;
myArrListSpecific.EXTEND(1);

...


Does anyone have any thoughts per converting the above to postgres and PL/pgSQL?

Thanks in advance










--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux