| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Sandro Martínez <smf2502(at)gmail(dot)com> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: sobre tipos de datos JDBC y Postgres |
| Date: | 2007-04-18 12:56:46 |
| Message-ID: | 20070418125646.GC3836@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Sandro Martínez escribió:
> CREATE OR REPLACE FUNCTION "public"."Test" ("keyValue" integer, "tdaValue"
> varchar, "tableName" varchar, "tdaName" varchar, "keyName" varchar) RETURNS
> boolean AS
> cstmt = con.prepareCall("{call Test (?, ?, ?, ?, ?)}");
> El cstmt.executeUpdate(); me levanta el siguiente error:
>
> ERROR: function test(integer, character varying, character varying,
> character varying, character varying) does not exist
La funcion se llama Test, no test. Probablemente debas hacer eso:
cstmt = con.prepareCall("{call \"Test\" (?, ?, ?, ?, ?)}");
Sugerencia: crea la funcion con solo minusculas y te ahorras el
problema.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sandro Martínez | 2007-04-18 14:14:50 | Re: sobre tipos de datos JDBC y Postgres |
| Previous Message | Alvaro Herrera | 2007-04-18 12:48:18 | Re: Lock menos restrictivo |