You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Suresh Subbiah (JIRA)" <ji...@apache.org> on 2015/08/31 07:46:46 UTC

[jira] [Closed] (TRAFODION-1280) LP Bug: 1465989 - Check the closed statement object status failed

     [ https://issues.apache.org/jira/browse/TRAFODION-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Subbiah closed TRAFODION-1280.
-------------------------------------
    Resolution: Fixed

Change status in JIRA to closed to reflect LaunchPad

> LP Bug: 1465989 - Check the closed statement object status failed
> -----------------------------------------------------------------
>
>                 Key: TRAFODION-1280
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1280
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: client-jdbc-t2, client-jdbc-t4
>            Reporter: YuBo
>
> Defect Description:
> Close a statement object and check its status again when call Statement.isClosed(), failed.
> Test Environment:
> codes' version: commit 1c7265ab7addcd088151904b9139337a29a52d90
> Test Steps:
> Step 1. Create a statement object via a connection object.
> 534         stmt = conn.createStatement();
> 535         assertFalse(stmt.isClosed());
> Step 2. Take a simple SQL action via this statement object.
> 536         sql = "get schemas";
> 537         ret = stmt.execute(sql);
> Step 3. Close this statement object when call Statement.close().
> 540         stmt.close();
> Step 4. Check this statement object status again.
> 541         assertTrue(stmt.isClosed());
> In the above steps, the step 4 will be failed because of the expected value "true" is opposite of the actual value "false" returned by Statement.isClosed() function, the console output as below,
> -bash-4.1$ java -Dprop=t4prop TestBigColumnSize
> Jun 17, 2015 8:37:11 AM TestBigColumnSize <clinit>
> INFO: ============= START ALL TEST CASES =============
> ---
> Exception in thread "main" java.lang.AssertionError
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertTrue(Assert.java:52)
>         at TestBigColumnSize.test_ext_2(TestBigColumnSize.java:541)
>         at TestBigColumnSize.main(TestBigColumnSize.java:26)
> -bash-4.1$
> BTW, T2 and T4 driver will be both impacted due to this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)