Stored procedures and relations

From: bilaribilari(at)yahoo(dot)com (FET)
To: pgsql-sql(at)postgresql(dot)org
Subject: Stored procedures and relations
Date: 2003-11-28 09:20:21
Message-ID: f86b739.0311280120.15475f08@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi everybody,
I have a stored procedure that drops table A and then creates table A
again. The table A has no constraints on any columns. When I execute
the stored procedure by saying: SELECT sp_myproc(); It gives me an
error saying : Relation 68428 does not exist.

When I remove the CREATE FUNCTION and the stuff used to make it a
stored procedure, and run the commands in the procedure, it works
correctly.

This behaviour is observed on all stored procedures on PG-SQL. I would
really appreciate any help or interpretation of this error. By the
way, the same stored procedure (with the syntax changed of course)
works perfectly on MS SQL Server.

Thanks in advance.

Regards.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2003-11-28 16:48:04 Re: Scaler forms as function arguments
Previous Message Joe Conway 2003-11-28 05:47:10 Re: Scaler forms as function arguments