db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2307) DatabaseMetaData.getTypeInfo nullability is incorrect for columns 1,7 and 9
Date Tue, 29 Jan 2008 20:52:35 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563661#action_12563661

Daniel John Debrunner commented on DERBY-2307:

Columns 7 & 9 have nullability that matches the SQL statement that produces them after
DERBY-3350 was fixed.

> DatabaseMetaData.getTypeInfo nullability is incorrect for columns 1,7 and 9
> ---------------------------------------------------------------------------
>                 Key: DERBY-2307
>                 URL: https://issues.apache.org/jira/browse/DERBY-2307
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC, SQL
>    Affects Versions:,,,,,,,
>            Reporter: Daniel John Debrunner
>            Priority: Minor
> Columns TYPE_NAME, NULLABLE, SEARCHABLE are returned as nullable but should not be. ODBC
variant correctly makes these non-nullable.
> From a quick look at the metadata query this may in fact be a language issue. The query
is based upon a VALUES clauses that has a list of literals that are not NULL in these columns.
Thus one would expect the implied type definition to be not nullable. However some of the
columns, e.g. 2 DATA_TYPE, have a similar list of non-NULL literals are do appear as non-NULLABLE
with getTypeInfo. Not sure what leads to the different behaviour.
> Look for comments in DatabaseMetaDataTest.testGetTypeInfo() with this bug number for
code t hat shows the issue.

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

View raw message