Skip to content

Commit

Permalink
Fix test-sp_rename
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Tanwar <[email protected]>
  • Loading branch information
ritanwar committed Jul 23, 2024
1 parent bb8be6a commit 32e6b09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
3 changes: 0 additions & 3 deletions test/JDBC/expected/Test-sp_rename-vu-cleanup.out
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,3 @@ GO

DROP SCHEMA sp_rename_vu_schema1;
GO

DROP VIEW babelfish_split_identifier_view;
GO
10 changes: 0 additions & 10 deletions test/JDBC/expected/Test-sp_rename-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,3 @@ CREATE TRIGGER sp_rename_vu_trig1 ON sp_rename_vu_table2
AFTER INSERT, UPDATE AS
RAISERROR ('Testing sp_rename', 16, 10);
GO

-- Dependency test for function babelfish_split_identifier
-- Create a view which depends upon babelfish_split_identifier function only
-- if the function exists.
IF OBJECT_ID('sys.babelfish_split_identifier') IS NOT NULL
BEGIN
EXEC sp_executesql N'
CREATE VIEW babelfish_split_identifier_view AS SELECT * FROM sys.babelfish_split_identifier(''ABC.DEF.GHI'')';
END
GO
6 changes: 3 additions & 3 deletions test/JDBC/expected/Test-sp_rename-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ ORDER BY TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME
GO
~~START~~
nvarchar#!#nvarchar#!#varchar#!#varchar
master#!#dbo#!#SP_RENAME_vu_TABLE1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_view1#!#VIEW
master#!#sp_rename_vu_schema1#!#sp_rename_vu_table1#!#BASE TABLE
Expand All @@ -310,7 +310,7 @@ ORDER BY TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME
GO
~~START~~
nvarchar#!#nvarchar#!#varchar#!#varchar
master#!#dbo#!#SP_RENAME_vu_TABLE1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_view1_case_insensitive1#!#VIEW
master#!#sp_rename_vu_schema1#!#sp_rename_vu_table1#!#BASE TABLE
Expand Down Expand Up @@ -347,7 +347,7 @@ ORDER BY TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME
GO
~~START~~
nvarchar#!#nvarchar#!#varchar#!#varchar
master#!#dbo#!#SP_RENAME_vu_TABLE1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table1_case_insensitive2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_table2#!#BASE TABLE
master#!#dbo#!#sp_rename_vu_view1#!#VIEW
master#!#sp_rename_vu_schema1#!#sp_rename_vu_table1#!#BASE TABLE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ DROP SCHEMA sp_rename_vu_schema1;
GO

DROP VIEW babelfish_split_identifier_view;
GO
GO
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ GO
CREATE TRIGGER sp_rename_vu_trig1 ON sp_rename_vu_table2
AFTER INSERT, UPDATE AS
RAISERROR ('Testing sp_rename', 16, 10);
GO
GO
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ GO

-- Trigger
EXEC sp_rename 'sp_rename_vu_trig1', 'sp_rename_vu_trig2', 'OBJECT';
GO
GO

0 comments on commit 32e6b09

Please sign in to comment.