On Fri, 25 Oct 2013 17:58:08 +0300, "Vlad Khorsun"
<hv...@users.sourceforge.net> wrote:
>> I agree, the current message is even nonsensical, because the insert
(or
>> update) did not fail because the column definition includes validation
>> constraints, but because the insert violated one of those constraints.
>> 
>> BTW: Would it be possible to include the name of the actual constraint
>> that was violated?
> 
> CREATE TABE T
> (
>   F1 INT NOT NULL,
>   F2 INT CHECK(F2 >= 0)
> )
> 
> what constraint name would you like to report in both cases ? :)

Doesn't that get assigned an internal name (I honestly don't remember and
I don't have Firebird at hand to check)?

Mark

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to