| From: | "Juan Francisco Diaz" <j-diaz(at)publicar(dot)com> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | INSERT INTO foo (col1,col2,...,coln) not working |
| Date: | 2003-08-25 20:30:08 |
| Message-ID: | 200308252030.h7PKU6231975@correo.publicar.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
INSERT INTO foo (col1,col2,...,coln) not working
INSERT INTO foo (col1,col2,...,coln) not working
INSERT INTO foo (col1,col2,...,coln) not working
X-Mailer: NeoMail 1.25
X-IPAddress: 64.76.48.99
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Why does this statement:
insert into Topos (IdLibro, Pagina, IdTopo, IdReferencia, PosX, PosY, Ancho, Alto) values
(CAST(Libro AS CHAR(6)), pag, CAST(Topo As CHAR(6)), CAST(Refe AS CHAR(6)), posX,
posY, Ancho, Alto);
gives me this error (the statement is on line 16 of a function, all aliases are ok):
WARNING: Error occurred while executing PL/pgSQL function instopo
WARNING: line 16 at SQL statement
ERROR: parser: parse error at or near "$1" at character 60
and on the other hand this statement;
insert into Topos values (CAST(Libro AS CHAR(6)), pag, CAST(Topo As CHAR(6)),
CAST(Refe AS CHAR(6)), posX, posY, Ancho, Alto);
works fine? The column names are ok i double checked that...
help! thanks
JuanF
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-08-25 20:53:18 | Re: Number of rows in a table |
| Previous Message | Stephan Szabo | 2003-08-25 18:18:40 | Re: Returning SETOF RECORD |