| From: | Jim Bryan <gooddayarizona(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | cannot create table using pl/perl |
| Date: | 2006-08-12 21:04:42 |
| Message-ID: | 20060812210442.83798.qmail@web33509.mail.mud.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Installed latest postgresql 8 on windows xp,
everything works fine with pl/pgsql; problems creating
a table with perl however:
CREATE OR REPLACE FUNCTION datetable() RETURNS integer
AS $$
CREATE TABLE tabletest
(
dayofmonth int4,
monthofyear int4,
theyear int4
)
$$
LANGUAGE 'plperlu' ;
But now when I try to run this function using query:
select * from datetable();
ERROR: error from Perl function: Can't locate object
method "dayofmonth" via package "int4" (perhaps you
forgot to load "int4"?) at line 3.
Any ideas appreciated. :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Merlin Moncure | 2006-08-12 22:10:12 | Re: Migrating PostgreSQL database to MySQL/MS Access |
| Previous Message | Jaime Casanova | 2006-08-12 20:48:31 | Re: Deploying app. using PostgreSQL |