public class Changes10_5 extends UpgradeChange
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BAD_SYNTAX |
oldVersion, PH_CREATE, PH_HARD_UPGRADE, PH_POST_HARD_UPGRADE, PH_POST_SOFT_UPGRADE, PH_SOFT_UPGRADE, phase, PHASES, SQLSTATE_NEED_UPGRADE
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
Changes10_5(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
private void |
possibleError(java.lang.String sqlstate,
java.lang.String text)
Run a statement.
|
static junit.framework.Test |
suite(int phase)
Return the suite of tests to test the changes made in 10.5.
|
void |
testDeterminismKeyword()
Test that the DETERMINISTIC keyword is not allowed until you
hard-upgrade to 10.5.
|
void |
testGenerationClauses()
Test that generation clauses are not allowed until you
hard-upgrade to 10.5.
|
void |
testSQLRoles()
Check that when hard-upgraded to 10.5 or later SQL roles can be
declared if DB has sqlAuthorization.
|
void |
testSQLRolesBasic()
Check that you must be hard-upgraded to 10.5 or later in order to use
SQL roles
|
void |
testUpdateStatisticsProcdure()
Make sure that SYSCS_UTIL.SYSCS_UPDATE_STATISTICS can only be run in
Derby 10.5 and higher.
|
getOldFixPack, getOldMajor, getOldMinor, getOldPoint, getOldVersion, getOldVersionString, getPhase, getPhaseString, oldAtLeast, oldIs, oldIs, oldLessThan
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, 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, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
assertEquals, 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, toString
private static final java.lang.String BAD_SYNTAX
public static junit.framework.Test suite(int phase)
phase
- an integer that indicates the current phase in
the upgrade test.public void testUpdateStatisticsProcdure() throws java.sql.SQLException
java.sql.SQLException
public void testDeterminismKeyword() throws java.sql.SQLException
java.sql.SQLException
public void testGenerationClauses() throws java.sql.SQLException
java.sql.SQLException
private void possibleError(java.lang.String sqlstate, java.lang.String text) throws java.sql.SQLException
Run a statement. If the sqlstate is not null, then we expect that error.
java.sql.SQLException
public void testSQLRolesBasic() throws java.sql.SQLException
java.sql.SQLException
public void testSQLRoles() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.