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

Weiqing Xu closed TRAFODION-17.
-------------------------------
    Resolution: Fixed

> Check the closed statement object status failed
> -----------------------------------------------
>
>                 Key: TRAFODION-17
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-17
>             Project: Apache Trafodion
>          Issue Type: Bug
>            Reporter: Weiqing Xu
>            Assignee: Weiqing Xu
>
> This bug has been filed in LaunchPad already. (It will be converted into 
> JIRA). Here is the link :https://bugs.launchpad.net/trafodion/+bug/1465989
> 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)

Reply via email to