You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Weiqing Xu (JIRA)" <ji...@apache.org> on 2015/07/03 07:36:04 UTC
[jira] [Created] (TRAFODION-17) Check the closed statement object
status failed
Weiqing Xu created TRAFODION-17:
-----------------------------------
Summary: 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
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)