db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saurabh Vyas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2280) DatabaseMetaData.getTypeInfo() UNSIGNED_ATTRIBUTE and AUTO_INCREMENT column returns incorrect information for BLOB & CLOB data type
Date Wed, 14 Mar 2007 11:54:09 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480732

Saurabh Vyas commented on DERBY-2280:

When I ran tests on this the jdbcsuite runs fine (JUnit), but a quick observation about  UNSIGNED_ATTRIBUTE
in DatabaseMataDataTest.java shows  that the code is commented currently.

--------------<code snip>--------
//assertFalse("UNSIGNED_ATTRIBUTE " + typeName,
//        rs.getBoolean("UNSIGNED_ATTRIBUTE"));


I uncommented that I ran the DatabaseMataDataTest.java again but it fails for char data types

[Working in NewTests] java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest

Time: 73.036
There were 2 failures:
1) testGetTypeInfo(org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest)junit.framework.AssertionFailedError:
        at org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest.testGetTypeInfo(DatabaseMetaDataTest.java:1631)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:80)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)

Similar failures are observed for Date data type too. Now I am not sure that will these data
types be SIGNED ?? (i.e. UNSIGNED_ATTRIBUTE=FALSE) . If so do we need to raise separate JIRA

Comments / Suggestions !!!

> DatabaseMetaData.getTypeInfo() UNSIGNED_ATTRIBUTE and AUTO_INCREMENT column returns incorrect
information for BLOB & CLOB data type
> -----------------------------------------------------------------------------------------------------------------------------------
>                 Key: DERBY-2280
>                 URL: https://issues.apache.org/jira/browse/DERBY-2280
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions:,,,,,,
>            Reporter: Saurabh Vyas
>         Assigned To: Saurabh Vyas
>            Priority: Minor
>         Attachments: Derby-2280.diff, Derby-2280.stat
> getTypeInfo() method should return FALSE for UNSIGNED_ATTRIBUTE and AUTO_INCREMENT in
case of BLOB & CLOB data type.
> Currently it returns NULL value.

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

View raw message