Subject | Re: [firebird-support] alter domain |
---|---|
Author | Martijn Tonies |
Post date | 2006-03-29T13:07:42Z |
Hi,
Drop the constraints first, then modify the domain, then re-create
the constraints.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I have a domain declared as NUMERIC(9,0), used in many tables alreadyThe columns that use the domain are being used by constraints.
> populated. I want to change the type of the domain to BIGINT, but the
> "ALTER DOMAIN" command failed with the error message :
> "Statement failed, SQLCODE = -607
>
> 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"
>
> I tried NUMERIC(18,0) instead of BIGINT, thinking it was an invalid
> conversion, but it gave me the same error.
>
> What's wrong ? And how can I do this modification ?
Drop the constraints first, then modify the domain, then re-create
the constraints.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com