Subject | RE: [firebird-support] foreign key strangeness |
---|---|
Author | Dmitry Yemanov |
Post date | 2003-11-24T13:10:48Z |
Martijn,
both parther indices. And exactly this fact is the issue too ;-)
comparable with [almost[ everything, it seems you should be able to do that.
But I don't see much value in such FKs. And it definitely leads to some
types of weird errors or even data corruptions. Hence I tend to disable this
possibilty.
Dmitry
> > Both ;-) And I tend to fix this in the next FB release.By design, no checks are made to validate the datatype compatibility for the
>
> Out of curiosity: exactly what part is the issue? And what part
> is by design? :)
both parther indices. And exactly this fact is the issue too ;-)
> Meaning: can't I create an FK from an Integer to a VARCHARThe standard says that both datatypes should be comparable. Since VARCHAR is
> containing integers?
comparable with [almost[ everything, it seems you should be able to do that.
But I don't see much value in such FKs. And it definitely leads to some
types of weird errors or even data corruptions. Hence I tend to disable this
possibilty.
Dmitry