db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3310) ASSERT in MergeSort.checkColumnTypes() disallow legal type conversions
Date Fri, 22 Feb 2008 22:21:20 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571618#action_12571618
] 

Kathey Marsden commented on DERBY-3310:
---------------------------------------

Thanks Dan for looking at the patch.  Do you think this is a 
sufficient incremental improvement to resolve the regression? 
then I can file a separate issue to investgate the wisdom and future
of copyLengthsAndTypesToSource.

Simply  removing it lead to all sorts of unpleasantness, such as
ij> insert into d3310 select distinct * from (values 2.0, 2.1, 2.2) v;
3 rows inserted/updated/deleted
ij> select * from d3310;
X
--------------------
ERROR XSDA7: Restore of a serializable or SQLData object of class , attempted to read more
data than was originally stor
ed
ERROR XJ001: Java exception: ': java.io.EOFException'.
ij> exit;

I am going to attach a diff file of the original change that inserted the method.
I am not sure I understand all the code that was there before but I think
it was perhaps superior to the fix.


> ASSERT in MergeSort.checkColumnTypes() disallow legal type conversions
> ----------------------------------------------------------------------
>
>                 Key: DERBY-3310
>                 URL: https://issues.apache.org/jira/browse/DERBY-3310
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.4.0.0
>            Reporter: Dyre Tjeldvoll
>            Assignee: Kathey Marsden
>            Priority: Minor
>         Attachments: cast-repro.sql, derby-3310_try1_diff.txt
>
>
> The following code 
> CREATE TABLE U (SNAME VARCHAR(32000), TNAME VARCHAR(32000), C1 BIGINT);
> -- This triggers an ASSERT (because 2 is INTEGER and not BIGINT)
> INSERT INTO U(SNAME, TNAME, C1) SELECT DISTINCT SCHEMANAME, TABLENAME, 2
>  FROM SYS.SYSTABLES T JOIN SYS.SYSSCHEMAS S ON T.SCHEMAID = S.SCHEMAID;
> gives
> ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLInteger)
expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.SQLLongint):
org.apache.derby.shared.common.sanity.AssertFailure'.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message