From: | Jorge Ramirez <jramirez(at)chicolinux(dot)com(dot)mx> |
---|---|
To: | <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>, "Rodrigo Posada S(dot)" <rposada(at)chicolinux(dot)com(dot)mx> |
Cc: | Jorge Ramirez <jramirez(at)chicolinux(dot)com(dot)mx> |
Subject: | [Pgsql-ayuda] Migración a 7.4.1 |
Date: | 2004-01-21 06:19:10 |
Message-ID: | Pine.LNX.4.33.0401211157120.6749-100000@vicda |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Hola a tod(at)s, bueno, pues este fin de semana migre uno de mis postgres a 7.4.1, pero tengo una cuestión, a ver si a ustedes se les ocurre algo... tengo la siguiente tabla:
Table "public.rmamovs"
Column | Type | Modifiers
------------+------------------+--------------------
ent_sal | character(1) | default ''::bpchar
tipo_movim | character(2) | default ''::bpchar
no_referen | character(6) | default ''::bpchar
clave_art | character(12) | default ''::bpchar
f_movim | date |
cantidad | double precision | default 0
costo | double precision | default 0
existencia | double precision | default 0
valor | double precision | default 0
almacen | character(1) | default ''::bpchar
exist_alm | double precision | default 0
precio_vta | double precision | default 0
centraliza | character(1) | default ''::bpchar
por_costea | double precision | default 0
sl_cons | character(8) | default ''::bpchar
exist_alm3 | double precision | default 0
exist_alm4 | double precision | default 0
exist_alm5 | double precision | default 0
--
en PostgreSQL 7.2.1 hay un insert en la aplicación que usamos aqui, que evidentemente esta incompleto:
INSERT INTO RMAMOVS (COSTO,EXISTENCIA,VALOR,ENT_SAL,TIPO_MOVIM,NO_REFEREN,CLAVE_ART,F_MOVIM,CANTIDAD,ALMACEN,EXIST_ALM,EXIST_ALM3,EXIST_ALM4,EXIST_ALM5,POR_COSTEA,SL_CONS,PRECIO_VTA) VALUES ( 25, -11, -275,'S','SS','003187','001-012D950 ','20040120', 1,'4', -6, 0, 1, 0,'', 288.585)
sin embargo en postgres 7.2.1 funciona.
Ahora que estamos en 7.4.1, si valida(ERROR: INSERT has more target columns than expressions) =(, que es lo mejor...pero quisiera ver la forma de solucionar esto a nivel de postgres para no tocar el código fuente...se les ocurre algo???....
Gracias y saludos...
Jorge Ramirez.
From | Date | Subject | |
---|---|---|---|
Next Message | jgct70 | 2004-01-21 15:30:50 | [Pgsql-ayuda] ayuda conexion postgre - php en freebsd |
Previous Message | Jorge Lopez | 2004-01-21 01:20:32 | [Pgsql-ayuda] El uso de Cubes en Postgresql |