⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 savepointjdbc30.out

📁 derby database source code.good for you.
💻 OUT
字号:
Test savepointJdbc30 starting for regular connectionsTests common to DRDA and embedded CloudscapeTest1 - no unnamed savepoints allowed if autocommit is trueExpected Exception is Cannot set savepoint when in auto-commit mode.Test1a - no named savepoints allowed if autocommit is trueExpected Exception is Cannot set savepoint when in auto-commit mode.Test2 - Release and reuse a savepoint nameTest3 - null name not allowed for named savepointsExpected Exception is Named savepoint needs a none-null name.Test4 - Verify names/ids of named/unnamed savepointsExpected Exception is This is an un-named savepoint.Expected Exception is This is a named savepoint.Test5a - create two savepoints in two different transactions and release the first one in the subsequent transactionExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test5b - create two savepoints in two different transactions and rollback the first one in the subsequent transactionExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6a - create a savepoint, release it, create another with same name and release the first oneExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6b - create a savepoint, release it, create another with same name and rollback the first oneExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6c - Try to use a savepoint from another connection for releaseExpected Exception is Cannot release a savepoint that was not created by this connection.Test7a - swap savepoints across connections with releaseExpected Exception is Cannot release a savepoint that was not created by this connection.Test7b - swap savepoints across connections with rollbackExpected Exception is Rollback to a savepoint not created by this connection.Test 9 test savepoint nameTest 10 test savepoint name case sensitivityTest 11 rolling back a savepoint multiple times - should workTest 12 releasing a savepoint multiple times - should not workExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 13 shouldn't be able to use a savepoint from earlier transaction after setting autocommit on and offExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 14 A non-user initiated transaction rollback should release the internal savepoint arrayExpected Exception is A lock could not be obtained within the time requestedExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 15 check savepoints in batchTest 16 grammar check for savepoint sq1Expected Exception is Syntax error: MISSING ON ROLLBACK RETAIN CURSORS.Expected Exception is Multiple or conflicting keywords involving the 'ON ROLLBACK RETAIN CURSORS' clause are present.Expected Exception is Multiple or conflicting keywords involving the 'ON ROLLBACK RETAIN LOCKS' clause are present.Expected Exception is Multiple or conflicting keywords involving the 'UNIQUE' clause are present.Test 17 No nested savepoints allowed when using SQL to set savepoints.Test 17a Test with UNIQUE clause.Expected Exception is The maximum number of savepoints has been reached. Test 17b Test without UNIQUE clause.Since no nesting is allowed, skipping UNIQUE still gives error for trying to define another savepointExpected Exception is The maximum number of savepoints has been reached. Test 18 No nested SQL savepoints allowed inside JDBC savepoint.Following SQL savepoint will fail because we are trying to nest it inside JDBC savepointExpected Exception is The maximum number of savepoints has been reached. Test 19 No nested SQL savepoints allowed inside SQL savepoint.Following SQL savepoint will fail because we are trying to nest it inside SQL savepointExpected Exception is The maximum number of savepoints has been reached. Test 20 Rollback of SQL savepoint works same as rollback of JDBC savepoint.Test 21 After releasing the SQL savepoint, rollback the transaction and should see everything undone.Test 22 Should not be able to create a SQL savepoint starting with name SYSExpected Exception is An object cannot be created with the schema name 'SYS'.Test 23 Should be able to use non-reserved keywords savepoint and release as identifiersCreate table with savepoint and release as identifiersCreate a savepoint with name savepointRelease the savepoint with name savepointCreate a savepoint with name releaseRollback to the savepoint with name releaseRelease the savepoint with name releaseTest 24 Savepoint name can't exceed 128 charactersExpected Exception is The name 'MyName1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' is too long. The maximum length is '128'.Test 25 Should not be able to create a SQL savepoint starting with name SYS through jdbcExpected Exception is An object cannot be created with the schema name 'SYS'.Test 26a rollback of null savepointExpected Exception is Cannot rollback to a null savepoint.Test 26b release  of null savepointExpected Exception is Cannot release a null savepoint.Next try non-DRDA testsTest savepointJdbc30 finished for regular connectionsTest savepointJdbc30 starting for connections from XADataSource (local tranasaction)Tests common to DRDA and embedded CloudscapeTest1 - no unnamed savepoints allowed if autocommit is trueExpected Exception is Cannot set savepoint when in auto-commit mode.Test1a - no named savepoints allowed if autocommit is trueExpected Exception is Cannot set savepoint when in auto-commit mode.Test2 - Release and reuse a savepoint nameTest3 - null name not allowed for named savepointsExpected Exception is Named savepoint needs a none-null name.Test4 - Verify names/ids of named/unnamed savepointsExpected Exception is This is an un-named savepoint.Expected Exception is This is a named savepoint.Test5a - create two savepoints in two different transactions and release the first one in the subsequent transactionExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test5b - create two savepoints in two different transactions and rollback the first one in the subsequent transactionExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6a - create a savepoint, release it, create another with same name and release the first oneExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6b - create a savepoint, release it, create another with same name and rollback the first oneExpected Exception is SAVEPOINT, s1 does not  exist or is not active in the current transaction.Test6c - Try to use a savepoint from another connection for releaseExpected Exception is Cannot release a savepoint that was not created by this connection.Test7a - swap savepoints across connections with releaseExpected Exception is Cannot release a savepoint that was not created by this connection.Test7b - swap savepoints across connections with rollbackExpected Exception is Rollback to a savepoint not created by this connection.Test 9 test savepoint nameTest 10 test savepoint name case sensitivityTest 11 rolling back a savepoint multiple times - should workTest 12 releasing a savepoint multiple times - should not workExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 13 shouldn't be able to use a savepoint from earlier transaction after setting autocommit on and offExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 14 A non-user initiated transaction rollback should release the internal savepoint arrayExpected Exception is A lock could not be obtained within the time requestedExpected Exception is SAVEPOINT, MyName does not  exist or is not active in the current transaction.Test 15 check savepoints in batchTest 16 grammar check for savepoint sq1Expected Exception is Syntax error: MISSING ON ROLLBACK RETAIN CURSORS.Expected Exception is Multiple or conflicting keywords involving the 'ON ROLLBACK RETAIN CURSORS' clause are present.Expected Exception is Multiple or conflicting keywords involving the 'ON ROLLBACK RETAIN LOCKS' clause are present.Expected Exception is Multiple or conflicting keywords involving the 'UNIQUE' clause are present.Test 17 No nested savepoints allowed when using SQL to set savepoints.Test 17a Test with UNIQUE clause.Expected Exception is The maximum number of savepoints has been reached. Test 17b Test without UNIQUE clause.Since no nesting is allowed, skipping UNIQUE still gives error for trying to define another savepointExpected Exception is The maximum number of savepoints has been reached. Test 18 No nested SQL savepoints allowed inside JDBC savepoint.Following SQL savepoint will fail because we are trying to nest it inside JDBC savepointExpected Exception is The maximum number of savepoints has been reached. Test 19 No nested SQL savepoints allowed inside SQL savepoint.Following SQL savepoint will fail because we are trying to nest it inside SQL savepointExpected Exception is The maximum number of savepoints has been reached. Test 20 Rollback of SQL savepoint works same as rollback of JDBC savepoint.Test 21 After releasing the SQL savepoint, rollback the transaction and should see everything undone.Test 22 Should not be able to create a SQL savepoint starting with name SYSExpected Exception is An object cannot be created with the schema name 'SYS'.Test 23 Should be able to use non-reserved keywords savepoint and release as identifiersCreate table with savepoint and release as identifiersCreate a savepoint with name savepointRelease the savepoint with name savepointCreate a savepoint with name releaseRollback to the savepoint with name releaseRelease the savepoint with name releaseTest 24 Savepoint name can't exceed 128 charactersExpected Exception is The name 'MyName1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' is too long. The maximum length is '128'.Test 25 Should not be able to create a SQL savepoint starting with name SYS through jdbcExpected Exception is An object cannot be created with the schema name 'SYS'.Test 26a rollback of null savepointExpected Exception is Cannot rollback to a null savepoint.Test 26b release  of null savepointExpected Exception is Cannot release a null savepoint.Next try non-DRDA testsTest savepointJdbc30 finished for connections from XADataSource (local tranasaction)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -