From: | "Jonathan Ellis" <jellis(at)advocast(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | How do you call one pltcl procedure from another? |
Date: | 2000-11-04 18:31:25 |
Message-ID: | 038a01c04691$04e9b040$0d00a8c0@dsl.inconnect.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
I defined a procedure
CREATE FUNCTION meta_class (varchar) RETURNS varchar AS '
...
' LANGUAGE 'pltcl';
This works fine. But when I want to call it from another tcl procedure I
get errors:
bf2=# CREATE FUNCTION foo (varchar) RETURNS varchar AS '
return [meta_class $1]
' LANGUAGE 'pltcl';
bf2'# bf2'# CREATE
bf2=# bf2=# select foo(class) from weapon_Types;
ERROR: pltcl: invalid command name "meta_class"
This IS possible -- isn't it?
-Jonathan
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2000-11-04 20:10:49 | Re: [HACKERS] OSDN Database conference report (long) |
Previous Message | Bruce Momjian | 2000-11-04 18:18:11 | Re: Sample Program |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-11-04 18:43:15 | Re: Transaction ID wraparound: problem and proposed solution |
Previous Message | Bruce Momjian | 2000-11-04 18:23:19 | Re: CommandCounterIncrement |