db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dag.wan...@oracle.com (Dag H. Wanvik)
Subject Re: silent truncation, correct?
Date Tue, 08 May 2012 19:21:35 GMT
Knut Anders Hatlen <knut.hatlen@oracle.com> writes:

> AKA https://issues.apache.org/jira/browse/DERBY-5537 :)
>
>> The truncation behavior we're seeing may be due to the insertion of
>> implicit CASTs.
>
> The above mentioned bug has a patch attached. Would be interesting to
> see if it makes these implicit casts raise a warning too.

Confirmed. Tried the repro as modified below with that patch and saw:

:
warning:01004 java.sql.DataTruncation: Data truncation
:

Dag


Mime
View raw message