[firebase-br] Problema ao alterar um domínio.

Daniel Breda daniel.breda em gmail.com
Qua Jan 18 11:46:05 -03 2012


Galera, tenho um base de dados Firebird 2.1 onde possuo um domínio 
chamado de DMDERIVACAO VARCHAR(10) COLLATE NONE CHARSET NONE;
Preciso alterar o tamanho deste domínio para VARCHAR(20), já removi 
todas as fks que faziam referência ao mesmo e também comentei todas as 
procedures e triggers, mas mesmo assim continuo recebendo a mensagem:

Com o comando:
ALTER DOMAIN DOMDERIVACAO TYPE VARCHAR(20) CHARACTER SET NONE;

Erro:
This operation is not defined for system tables.
unsuccessful metadata update.
MODIFY RDB$FIELDS failed.
action cancelled by trigger (1) to preserve data integrity.
Cannot update index segment used by an Integrity Constraint.


Com o comando:
UPDATE RDB$FIELDS SET RDB$FIELD_LENGTH = 20, RDB$CHARACTER_LENGTH = 20 
WHERE (RDB$FIELD_NAME = 'DOMDERIVACAO');

Erro:
Unsuccessful execution caused by system error that does not preclude 
successful execution of subsequent statements.
action cancelled by trigger (1) to preserve data integrity.
Cannot update index segment used by an Integrity Constraint.


O que faço para resolver???





Mais detalhes sobre a lista de discussão lista