[ 
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>--------
// UNSIGNED_ATTRIBUTE (column 10)
//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

---------------<snip>---------------
...................F......................
.F....
Time: 73.036
There were 2 failures:
1) 
testGetTypeInfo(org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest)junit.framework.AssertionFailedError:
 UNSIGNED_ATTRIBUTE LONG VARCHAR FOR BIT DATA
        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: 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 
> 10.2.2.0, 10.3.0.0
>            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.

Reply via email to