public class ResultSetMiscTest extends BaseJDBCTestCase
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
nogc
Hang onto the SecurityCheck class while running the tests so that it is
not garbage collected during the test and lose the information it has
collected.
|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
ResultSetMiscTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
baseSuite(java.lang.String name) |
private void |
checkLocksForAutoCommitSelect(java.sql.Connection conn,
java.sql.Statement stmt,
int action)
Check locks with various commit sequences.
|
private void |
checkSingleRSAutoCommit(java.sql.Connection conn)
Tests for two things:
1) The ResultSet does not close implicitly when the ResultSet completes
and holdability == HOLD_CURSORS_OVER_COMMIT
2) The ResultSet auto-commits when it completes and auto-commit is on.
|
private void |
checkSingleRSCloseCursorsAtCommit(java.sql.Connection conn)
Check to see that ResultSet closes implicitly when holdability is set to
CLOSE_CURORS_AT_COMMIT.
|
private boolean |
locksHeld()
Check if locks are held.
|
static junit.framework.Test |
suite()
Runs the test fixtures in embedded and client.
|
void |
testAutoCommit()
Setup up and run the auto-commit tests.
|
void |
testBug4810()
Test fix for Bug4810 -Connection.commit() & rollback() do not
commit/rollback in auto-commit mode.
|
void |
testCorrelationNamesAndMetaDataCalls() |
void |
testFloatMAX_VALUE(java.sql.Connection conn) |
void |
testResultSetMetaData()
Test resultset metadata on columns of various types
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toStringprivate final java.lang.Object nogc
public void testResultSetMetaData()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testBug4810()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testAutoCommit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testCorrelationNamesAndMetaDataCalls()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testFloatMAX_VALUE(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void checkSingleRSAutoCommit(java.sql.Connection conn)
throws java.sql.SQLException
conn - The Connectionjava.sql.SQLExceptionprivate void checkSingleRSCloseCursorsAtCommit(java.sql.Connection conn)
throws java.sql.SQLException
conn - The Connectionjava.sql.SQLExceptionprivate void checkLocksForAutoCommitSelect(java.sql.Connection conn,
java.sql.Statement stmt,
int action)
throws java.sql.SQLException
conn - Initialized connectionstmt - stmt to use for select from tableaction - 0 = autocommit only 1 = commit with ResultSet open 2 =
rollback with ResultSet openjava.sql.SQLExceptionprivate boolean locksHeld()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static junit.framework.Test suite()
public static junit.framework.Test baseSuite(java.lang.String name)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.