Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tanzeel Khan <[email protected]>
  • Loading branch information
tanscorpio7 committed Jan 21, 2025
1 parent 9872e71 commit ee913a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 4 additions & 2 deletions test/JDBC/input/ddl/temp-tables.mix
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,12 @@ CREATE USER babel_5569_l1
GO
ALTER ROLE db_ddladmin ADD MEMBER babel_5569_l1
GO

-- tsql user=babel_5569_l1 password=12345678
CREATE TABLE babel_5569_table(a INT)
GO
GRANT SELECT ON babel_5569_table TO babel_5569_l1
GO

-- tsql user=babel_5569_l1 password=12345678
CREATE TABLE #babel_5569_temp_table (a INT)
GO

Expand Down
22 changes: 10 additions & 12 deletions test/JDBC/sql_expected/temp-tables.out
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int

CREATE TABLE ##global_tempt(col int);
GO
~~ERROR (Code: 1088)~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: 'GLOBAL TEMPORARY TABLE' is not currently supported in Babelfish)~~

Expand Down Expand Up @@ -207,19 +207,19 @@ GO
-- should fail to find these tables
select * from #tt_1st;
go
~~ERROR (Code: 16908420)~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: relation "#tt_1st" does not exist)~~

select * from #tt_2nd;
go
~~ERROR (Code: 16908420)~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: relation "#tt_2nd" does not exist)~~

select * from #tt_3rd;
go
~~ERROR (Code: 16908420)~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: relation "#tt_3rd" does not exist)~~

Expand Down Expand Up @@ -300,7 +300,7 @@ GO

select * from #tt; -- can't find the table
go
~~ERROR (Code: 16908420)~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: relation "#tt" does not exist)~~

Expand All @@ -327,7 +327,7 @@ create table #tt_con(a int CHECK (a > 10));
go
insert into #tt_con values(1); -- errorneous
go
~~ERROR (Code: 67391682)~~
~~ERROR (Code: 547)~~

~~ERROR (Message: new row for relation "#tt_con" violates check constraint "#tt_con_a_check")~~

Expand Down Expand Up @@ -417,10 +417,12 @@ CREATE USER babel_5569_l1
GO
ALTER ROLE db_ddladmin ADD MEMBER babel_5569_l1
GO

-- tsql user=babel_5569_l1 password=12345678
CREATE TABLE babel_5569_table(a INT)
GO
GRANT SELECT ON babel_5569_table TO babel_5569_l1
GO

-- tsql user=babel_5569_l1 password=12345678
CREATE TABLE #babel_5569_temp_table (a INT)
GO

Expand Down Expand Up @@ -453,10 +455,6 @@ GO
-- tsql user=babel_5569_l1 password=12345678
SELECT * INTO #babel_5569_temp_table2 FROM babel_5569_table
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: permission denied for table babel_5569_table)~~

-- terminate-tsql-conn user=babel_5569_l1 password=12345678

-- tsql
Expand Down

0 comments on commit ee913a8

Please sign in to comment.