Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Bases de datos > Firebird e Interbase
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #5  
Antiguo 06-08-2007
Avatar de ArdiIIa
[ArdiIIa] ArdiIIa is offline
Miembro Premium
 
Registrado: nov 2003
Ubicación: Valencia city
Posts: 1.481
Poder: 24
ArdiIIa Va por buen camino
Version 2

Revivo este antiguo hilo para comentar que me ha pasado lo mismo ahora mismo...

Resulta que no se puede asignar un nuevo valor de la tabla afectada en un trigger AFTER UPDATE.

Cita:
Why don't my triggers fire? For example, I have an AFTER UPDATE trigger that is supposed to update a flag: new.Flag = 'T'; but it never happens!
AFTER triggers cannot be used to set values on the row: the NEW values are read-only at this point.

A BEFORE action trigger fires before the action, followed by constraints, then the action, then AFTER triggers. If a posted operation is cancelled by a ROLLBACK, all of the actions, including the triggered actions, will be undone. The whole package -- BEFORE action triggers, action, and AFTER action triggers and any other changes caused by the changes -- is atomic, which means it will succeed or fail as a unit.
__________________
Un poco de tu generosidad puede salvar la vida a un niño. ASÍ DE SENCILLO
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Error Raro sobre archivo "ntdll.dll" que no consigo encontrar el motivo AGAG4 Impresión 1 23-11-2007 07:11:17
Error Firebird sin Explicacion , Demasiado Raro hot1974 Firebird e Interbase 10 05-10-2006 15:44:35
Comportamiento raro de Firebird en Starting With AGAG4 Firebird e Interbase 6 07-06-2006 16:10:56
Un error raro..... Rafe Varios 3 28-07-2005 23:07:02
URGENTE: Error raro en Firebird burasu Firebird e Interbase 3 14-07-2004 13:19:25


La franja horaria es GMT +2. Ahora son las 16:35:25.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi