Sql - Error : Relation tmp_datos already exists

From: Adriana Marcela Aguirre <ing_adriana_aguirre(at)yahoo(dot)com(dot)ar>
To: pgsql-sql(at)postgresql(dot)org
Subject: Sql - Error : Relation tmp_datos already exists
Date: 2005-10-20 14:44:49
Message-ID: 20051020144450.80663.qmail@web36712.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hello!

Mario Splivalo:Thank you very much for your helpl!!!

I´m working with postgres 7.4.1. and VFoxPro 5.
I call a function (Postgresql) many times from VFoxPro:

sql = "select * from f_rep_datos_lab( 'USUARIO')"
aaa=sqlexec(db_cone,sql, "report")

This function use temporary tables wich are created with "ON COMMIT DROP".

There is a problem because the temporary table already exists during the second execution of the function. ("Relation tmp_datos already exists")

But...iIf i call this function many times in the same PgAdmin' session, f.e., there weren't problems. The querys in that functions are execuded with "EXECUTE".

Whi?....what's wrong whit this calling?

Any idea will be welcome.

Thanks

Adriana


---------------------------------
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
Abrí tu cuenta aquí

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Fernando Garcia 2005-10-20 15:25:13 Problema con migracion de SQL a PostgreSQL
Previous Message Richard Huxton 2005-10-20 07:32:58 Re: casting character varying to integer - order by numeric