Subject | Re: [firebird-support] Dropping an unnamed constraint |
---|---|
Author | Tobias Grimm |
Post date | 2007-10-05T09:29:13Z |
Hello Thierry,
Tetram Corp schrieb:
It would probably be a good idea to modifiy NHibernates schema generator
to assign unique names to such constraints, the same way it is already
done for foreign key constraints.
bye,
Tobias
Tetram Corp schrieb:
> select rc.rdb$constraint_nameThanks a million! It works fine!
> from rdb$relation_constraints rc
> inner join rdb$index_segments indexes
> on rc.rdb$index_name = indexes.rdb$index_name
> where rc.rdb$constraint_type = 'UNIQUE'
> and rc.rdb$relation_name = 'YOURTABLE'
> and indexes.rdb$field_name = 'NUMBER'
>
It would probably be a good idea to modifiy NHibernates schema generator
to assign unique names to such constraints, the same way it is already
done for foreign key constraints.
bye,
Tobias