Author: shawkins
Date: 2011-06-08 14:23:36 -0400 (Wed, 08 Jun 2011)
New Revision: 3235
Modified:
branches/7.4.x/client/src/main/java/org/teiid/jdbc/StatementImpl.java
branches/7.4.x/client/src/test/java/org/teiid/jdbc/TestStatement.java
Log:
TEIID-1626 adding a reset of the status
Modified: branches/7.4.x/client/src/main/java/org/teiid/jdbc/StatementImpl.java
===================================================================
--- branches/7.4.x/client/src/main/java/org/teiid/jdbc/StatementImpl.java 2011-06-08
16:54:23 UTC (rev 3234)
+++ branches/7.4.x/client/src/main/java/org/teiid/jdbc/StatementImpl.java 2011-06-08
18:23:36 UTC (rev 3235)
@@ -240,6 +240,7 @@
this.batchedUpdates = null;
this.updateCounts = null;
this.outParamIndexMap.clear();
+ this.commandStatus = State.RUNNING;
}
/**
Modified: branches/7.4.x/client/src/test/java/org/teiid/jdbc/TestStatement.java
===================================================================
--- branches/7.4.x/client/src/test/java/org/teiid/jdbc/TestStatement.java 2011-06-08
16:54:23 UTC (rev 3234)
+++ branches/7.4.x/client/src/test/java/org/teiid/jdbc/TestStatement.java 2011-06-08
18:23:36 UTC (rev 3235)
@@ -129,6 +129,10 @@
statement.submitExecute("select 'hello world'");
Thread.sleep(100);
Mockito.verify(dqp).cancelRequest(0);
+ statement.setQueryTimeoutMS(1);
+ statement.submitExecute("select 'hello world'");
+ Thread.sleep(100);
+ Mockito.verify(dqp, Mockito.times(2)).cancelRequest(0);
}
}
Show replies by date