[Pgsql-ayuda] Migración a 7.4.1
Jorge Ramirez
jramirez@chicolinux.com.mx
Wed, 21 Jan 2004 12:19:10 +0600 (GMT-6)
Hola a tod@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.