public class BatchTest extends DatabaseTestCase
Modifier and Type | Class and Description |
---|---|
private class |
BatchTest.ConcurrentBatchingHelper
Helper thread used by
testConcurrentBatching() to execute a batch within a transaction that is
then rolled back. |
Modifier and Type | Field and Description |
---|---|
private static int |
EXECUTE_FAILED |
private static int |
SUCCESS_NO_INFO |
Constructor and Description |
---|
BatchTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
array2String(int[] a) |
static void |
main(java.lang.String[] args) |
void |
testBatch()
Test batched statements.
|
void |
testBatchDupKey()
Test for bug [1371295] SQL Server continues after duplicate key error.
|
void |
testBatchEsc()
Test for bug [1180169] JDBC escapes not allowed with Sybase addBatch.
|
void |
testBatchUpdateCounts()
test for bug [2827931] that implicitly also tests for bug [1811383]
example for statement that produces multiple update counts unexpectedly:
IF sessionproperty('ARITHABORT') = 0 SET ARITHABORT ON
|
void |
testCallStmtBatch()
Test batched callable statements.
|
void |
testCallStmtBatch2()
Test batched callable statements where the call includes literal parameters which prevent the use of RPC calls.
|
void |
testCallStmtNoParams()
Test batched callable statements where the call has no parameters.
|
void |
testConcurrentBatching()
Test batched prepared statement concurrency.
|
void |
testDataTruncation()
this is a test for the data truncation problem described in bug [2731952]
|
void |
testExceptionChaining()
low-level test for critical performance issue described in bug [3078236]
|
void |
testLargeBatch()
Test large batch behavior.
|
void |
testNoCount()
The first statement in this batch does not return an update count.
|
void |
testPrepStmtBatch()
Test batched prepared statements.
|
void |
testPrepStmtBatchDupKey()
Test for bug [1371295] SQL Server continues after duplicate key error.
|
void |
testPrepStmtNoParams()
Test for PreparedStatement batch with no parameters.
|
void |
testPrepStmtVariableParams()
Test for PreparedStatement batch with variable parameter types.
|
void |
testResultSetError()
This test should generate an error as the second statement in the batch
returns a result set.
|
compareBytes, getLongString, getLongString, getType, getTypemap
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown
private static int SUCCESS_NO_INFO
private static int EXECUTE_FAILED
public void testResultSetError() throws java.lang.Exception
java.lang.Exception
public void testNoCount() throws java.lang.Exception
java.lang.Exception
public void testBatch() throws java.lang.Exception
java.lang.Exception
public void testPrepStmtBatch() throws java.lang.Exception
java.lang.Exception
public void testCallStmtBatch() throws java.lang.Exception
java.lang.Exception
public void testCallStmtBatch2() throws java.lang.Exception
java.lang.Exception
public void testLargeBatch() throws java.lang.Exception
java.lang.Exception
public void testBatchEsc() throws java.lang.Exception
java.lang.Exception
public void testPrepStmtBatchDupKey() throws java.lang.Exception
java.lang.Exception
public void testBatchDupKey() throws java.lang.Exception
java.lang.Exception
public void testPrepStmtNoParams() throws java.lang.Exception
java.lang.Exception
public void testPrepStmtVariableParams() throws java.lang.Exception
java.lang.Exception
public void testCallStmtNoParams() throws java.lang.Exception
java.lang.Exception
public void testConcurrentBatching() throws java.lang.Exception
java.lang.Exception
public void testDataTruncation() throws java.sql.SQLException
java.sql.SQLException
public void testBatchUpdateCounts() throws java.sql.SQLException
java.sql.SQLException
public void testExceptionChaining() throws java.sql.SQLException
java.sql.SQLException
private static java.lang.String array2String(int[] a)
public static void main(java.lang.String[] args)
Generated on June 8 2013