diff --git a/test/JDBC/expected/BABEL-CROSS-DB.out b/test/JDBC/expected/BABEL-CROSS-DB.out index 6cc2a64b48..c57fb1821d 100644 --- a/test/JDBC/expected/BABEL-CROSS-DB.out +++ b/test/JDBC/expected/BABEL-CROSS-DB.out @@ -206,7 +206,6 @@ GO ~~ROW COUNT: 1~~ --- Expect an error INSERT INTO dbo.db1_t1 (a) EXECUTE master.dbo.master_p1; GO @@ -224,6 +223,14 @@ int ~~END~~ +UPDATE dbo.db1_t1 +SET dbo.db1_t1.a = dbo.db1_t1.a + 1 +FROM master.dbo.master_t1 AS x +WHERE dbo.db1_t1.a = x.a; +GO +~~ROW COUNT: 8~~ + + SELECT current_user; GO ~~START~~ @@ -261,6 +268,21 @@ int#!#int USE MASTER; GO +SELECT * FROM db1.dbo.db1_t1 ORDER BY a; +GO +~~START~~ +int +11 +11 +11 +11 +11 +11 +31 +31 +~~END~~ + + --tsql USE MASTER; GO @@ -694,6 +716,23 @@ GO USE MASTER; GO +SELECT * FROM db1.dbo.db1_t1 ORDER BY a; +GO +~~START~~ +int +10 +10 +10 +10 +10 +10 +10 +10 +30 +30 +~~END~~ + + USE db1; GO diff --git a/test/JDBC/input/BABEL-CROSS-DB.mix b/test/JDBC/input/BABEL-CROSS-DB.mix index 57bee873da..65519d0547 100644 --- a/test/JDBC/input/BABEL-CROSS-DB.mix +++ b/test/JDBC/input/BABEL-CROSS-DB.mix @@ -127,7 +127,6 @@ OUTPUT inserted.a INTO master.dbo.master_t1 (a) VALUES (30); GO --- Expect an error INSERT INTO dbo.db1_t1 (a) EXECUTE master.dbo.master_p1; GO @@ -135,6 +134,12 @@ GO EXECUTE master.dbo.master_p1; GO +UPDATE dbo.db1_t1 +SET dbo.db1_t1.a = dbo.db1_t1.a + 1 +FROM master.dbo.master_t1 AS x +WHERE dbo.db1_t1.a = x.a; +GO + SELECT current_user; GO @@ -154,6 +159,9 @@ GO USE MASTER; GO +SELECT * FROM db1.dbo.db1_t1 ORDER BY a; +GO + --tsql USE MASTER; GO @@ -412,6 +420,9 @@ GO USE MASTER; GO +SELECT * FROM db1.dbo.db1_t1 ORDER BY a; +GO + USE db1; GO