Subject | Error message change from 1.5 to 2.1 |
---|---|
Author | Flávio Costa |
Post date | 2009-10-26T18:19:12Z |
Using Firebird 1.5, a violation in foreign key resulted in the following
message:
violation of FOREIGN KEY constraint "FK_TABLE1" on table "TABLE1"
Using Firebird 2.1, the message was changed to:
violation of FOREIGN KEY constraint "@1" on table "@2"
My program was analyzing the error message to extract both foreign key and
table names, so it can perform a insert to automatically correct this kind
of error.
Is there a way to make Firebird 2.1 work like 1.5 in this case?
I use Delphi 2007 and UIB for database abstraction.
[Non-text portions of this message have been removed]
message:
violation of FOREIGN KEY constraint "FK_TABLE1" on table "TABLE1"
Using Firebird 2.1, the message was changed to:
violation of FOREIGN KEY constraint "@1" on table "@2"
My program was analyzing the error message to extract both foreign key and
table names, so it can perform a insert to automatically correct this kind
of error.
Is there a way to make Firebird 2.1 work like 1.5 in this case?
I use Delphi 2007 and UIB for database abstraction.
[Non-text portions of this message have been removed]