| From: | "M C" <ayudapostgre(at)gmail(dot)com> |
|---|---|
| To: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | INSERT |
| Date: | 2008-12-15 19:06:22 |
| Message-ID: | 45a878710812151106h77c92c27sfbc6e2084c5edf78@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Tengo la siguiente función que realiza un INSERT y devuelve un booleano
CREATE OR REPLACE FUNCTION guardar_datos_pantalla(character varying,
integer, text[], integer, character varying)
RETURNS boolean AS
$BODY$
DECLARE
valor BOOLEAN;
BEGIN
INSERT INTO pantalla (titulo, n_paginas, descripcion, id_item_menu,
titulo_menu) VALUES ($1, $2, $3, $4, $5);
return valor;
END;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;
Al ejecutar la función (select guardar_datos_pantalla('Titulo', 2,
'descripcion', 1, 'titulo');) me produce el siguiente error:
ERROR: array value must start with "{" or dimension information
Esto se debe al tipo text?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Silvio Quadri | 2008-12-15 19:13:48 | Re: INSERT |
| Previous Message | Gilberto Castillo Martínez | 2008-12-15 18:18:35 | Re: COmo hago esta funcion?? |