Ver Mensaje Individual
  #2  
Antiguo 14-11-2006
Avatar de AGAG4
AGAG4 AGAG4 is offline
Miembro
 
Registrado: ago 2004
Ubicación: Los Mochis, Sinaloa, México
Posts: 1.420
Reputación: 21
AGAG4 Va por buen camino
Que Raro

El problema ahora se debe a un trigger que tengo, al estar investigando me encontre que el error se debía a que :
Código:
In Firebird 2.x I'm getting the error "General SQL error. 
Attempted update of read-only column" in code that used to work in v.1.5.3. 
I'm not using any computed fields. Is this a bug?

You have a trigger somewhere that is referring to a NEW or OLD 
context variable in the wrong context. 
From v.2.0, you will get this exception if, for example, 
you try to assign to NEW.Afield in an After Update trigger.
Revisando en mis trigger's sobre la tabla en donde me marca error, me percato que al recompilar cada trigger en uno de ellos me marca el mismo error:

Código:
This column cannot be updated because it is derived from an SQL function or expression.
attempted update of read-only column.
Y Precisamente si desabilito la línea siguiente:
Código SQL [-]
 /* New.FECINI_PROM = Null;*/

Al recompilar el trigger ya no me marca error, ya no esta permitido asignar Nulos a los campos DATE ????

Previamente Hize un BackUp y un Restore con la versión 2.0 de Firebird
__________________
"Hemos aprendido a volar como los Pájaros, y a nadar como los Peces, y todavía No aprendemos a vivir como Hermanos". Martin Luther King

Última edición por AGAG4 fecha: 14-11-2006 a las 17:35:05.
Responder Con Cita