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

📄 holdcursorjdbc30.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 3 页
字号:
-----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as     'select * from foo for update of data';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> --  test negative case of trying non next operations after commitget with hold cursor test1 as     'select * from foo for update of data';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> delete from foo where current of test1;ERROR 24000: Invalid cursor state - no current row.ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> update foo set data=-3000 where current of test1;ERROR 24000: Invalid cursor state - no current row.ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> --  test positive case of trying delete/update after commit and next.get with hold cursor test1 as     'select * from foo for update of data';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> delete from foo where current of test1;1 row inserted/updated/deletedij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> update foo set data=-3000 where current of test1;1 row inserted/updated/deletedij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> --  make sure above deletes/updates worked.get with hold cursor test1 as     'select * from foo for update of data';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |-3000      ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> commit;ij> -------------------------------------------------------------------------------- TEST 4: basic btree scan tests (zero rows/read only/no group fetch)--     The following tests that no matter where commit comes in the state of--     the scan that the scan will continue after the commit.  Tests various--     states of scan like: before first next, after first next, before close,--     after close.-------------------------------------------------------------------------------- basic tests for btreeautocommit off;ij> drop table foo;0 rows inserted/updated/deletedij> create table foo (a int, data int);0 rows inserted/updated/deletedij> create index foox on foo (a);0 rows inserted/updated/deletedij> -- the following for read cursors will all use group fetch = 1, thus each-- next passes straight through to store.  This select should only use the-- index with no interaction with the base table.get with hold cursor test1 as    'select a from foo ';ij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> commit;ij> next  test1;No current rowij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> next  test1;No current rowij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> next  test1;No current rowij> next  test1;No current rowij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> next  test1;No current rowij> next  test1;No current rowij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> commit;ij> -------------------------------------------------------------------------------- TEST 5: basic btree scan tests (multiple rows/read only/no group fetch)--     The following tests that no matter where commit comes in the state of--     the scan that the scan will continue after the commit.  Tests various--     states of scan like: before first next, after first next, before close,--     after close.------------------------------------------------------------------------------insert into foo values (1, 10);1 row inserted/updated/deletedij> insert into foo values (1, 20);1 row inserted/updated/deletedij> insert into foo values (1, 30);1 row inserted/updated/deletedij> insert into foo values (1, 40);1 row inserted/updated/deletedij> insert into foo values (1, 50);1 row inserted/updated/deletedij> -- the following for read cursors will all use group fetch = 1, thus each-- next passes straight through to store.  This select should only use the-- index with no interaction with the base table.get with hold cursor test1 as    'select * from foo ';ij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> commit;ij> next  test1;A          |DATA       -----------------------1          |10         ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select * from foo ';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as     'select * from foo ';ij> next  test1;A          |DATA       -----------------------1          |10         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |20         ij> commit;ij> next  test1;A          |DATA       -----------------------1          |30         ij> next  test1;A          |DATA       -----------------------1          |40         ij> next  test1;A          |DATA       -----------------------1          |50         ij> next  test1;No current rowij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> commit;ij> -------------------------------------------------------------------------------- TEST 6: basic tests for cursors with order by--     The following tests that no matter where commit comes in the state of--     the scan that the scan will continue after the commit.  Tests various--     states of scan like: before first next, after first next, before close,--     after close.-------------------------------------------------------------------------------- basic tests for cursors which include an order byautocommit off;ij> drop table foo;0 rows inserted/updated/deletedij> create table foo (a int, data int);0 rows inserted/updated/deletedij> create index foox on foo (a);0 rows inserted/updated/deletedij> -- the following for update cursors will all use group fetch = 1, thus each-- next passes straight through to store.  This select should only use the-- index with no interaction with the base table.get with hold cursor test1 as    'select a,data from foo order by data desc';ij> close test1;ij> commit;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select a,data from foo order by data desc';ij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select a,data from foo order by data desc';ij> commit;ij> next  test1;No current rowij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select a,data from foo order by data desc';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select a,data from foo order by data desc';ij> next  test1;No current rowij> commit;ij> next  test1;No current rowij> commit;ij> close test1;ij> -- should failnext test1;IJ ERROR: Unable to establish cursorij> get with hold cursor test1 as    'select a,data from foo order by data desc';ij> next  test1;No current rowij> commit;ij> next  test1;No current row

⌨️ 快捷键说明

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