Skip to content

Commit

Permalink
[OSS-ONLY] Update BABEL-CROSS-DB (#3043)
Browse files Browse the repository at this point in the history
This commit updates few test cases and expected output file for BABEL-CROSS-DB.

Issues Resolved: BABEL-CROSS-DB tests

Signed-off-by: Shameem Ahmed [email protected]
  • Loading branch information
ahmed-shameem authored Oct 23, 2024
1 parent 4bae220 commit be5cefd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
41 changes: 40 additions & 1 deletion test/JDBC/expected/BABEL-CROSS-DB.out
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ GO
~~ROW COUNT: 1~~


-- Expect an error
INSERT INTO dbo.db1_t1 (a)
EXECUTE master.dbo.master_p1;
GO
Expand All @@ -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~~
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
13 changes: 12 additions & 1 deletion test/JDBC/input/BABEL-CROSS-DB.mix
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,19 @@ 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

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

Expand All @@ -154,6 +159,9 @@ GO
USE MASTER;
GO

SELECT * FROM db1.dbo.db1_t1 ORDER BY a;
GO

--tsql
USE MASTER;
GO
Expand Down Expand Up @@ -412,6 +420,9 @@ GO
USE MASTER;
GO

SELECT * FROM db1.dbo.db1_t1 ORDER BY a;
GO

USE db1;
GO

Expand Down

0 comments on commit be5cefd

Please sign in to comment.