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

📄 xab2354.sql

📁 derby database source code.good for you.
💻 SQL
字号:
xa_datasource 'wombat' create;xa_connect;xa_start xa_noflags 1;xa_getconnection;create table foo (a int);insert into foo values (1);xa_end xa_success 1;xa_commit xa_1phase 1;xa_start xa_noflags 1;insert into foo values (2);select cast(global_xid as char(2)) as gxid, status from new org.apache.derby.diag.TransactionTable() t where gxid is not null order by gxid, status;xa_end xa_success 1;xa_prepare 1;xa_getconnection ;select cast(global_xid as char(2)) as gxid, status from new org.apache.derby.diag.TransactionTable() t where gxid is not null order by gxid, status;xa_datasource 'wombat' shutdown;xa_datasource 'wombat';xa_connect;-- this works correctlyxa_start xa_noflags 1;xa_getconnection;-- this was the bug, this statement should also get DUPID errorxa_start xa_noflags 1;-- should see two transactions, one global transaction and one localselect cast(global_xid as char(2)) as gxid, status from new org.apache.derby.diag.TransactionTable() t where gxid is not null order by gxid, status;

⌨️ 快捷键说明

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