Skip to content

Commit

Permalink
fix github action failures
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Bhagat <[email protected]>
  • Loading branch information
Rohit Bhagat committed Sep 25, 2024
1 parent d0256b5 commit 64dc91f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 536 deletions.
49 changes: 0 additions & 49 deletions test/JDBC/expected/xml_exist-before-16_5-vu-cleanup.out
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ GO
~~ERROR (Message: view "babel_5222_xml_exist_dep_view" does not exist)~~


DROP VIEW babel_5222_xml_exist_dep_view2
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: view "babel_5222_xml_exist_dep_view2" does not exist)~~


DROP PROCEDURE babel_5222_xml_exist_dep_proc
GO

Expand Down Expand Up @@ -54,48 +47,6 @@ GO
~~ERROR (Message: table "babel_5222_xml_exist_constraint" does not exist)~~


DROP TABLE babel_5222_xml_exist_compcol1
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: table "babel_5222_xml_exist_compcol1" does not exist)~~


DROP TABLE babel_5222_xml_exist_constraint1
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: table "babel_5222_xml_exist_constraint1" does not exist)~~


DROP FUNCTION dbo.wrapper_xmlexist1
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: could not find a function named "master_dbo.wrapper_xmlexist1")~~


DROP TABLE babel_5222_xml_exist_compcol2
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: table "babel_5222_xml_exist_compcol2" does not exist)~~


DROP TABLE babel_5222_xml_exist_constraint2
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: table "babel_5222_xml_exist_constraint2" does not exist)~~


DROP FUNCTION dbo.wrapper_xmlexist2
GO
~~ERROR (Code: 3701)~~

~~ERROR (Message: could not find a function named "master_dbo.wrapper_xmlexist2")~~


DROP TRIGGER babel_5222_xml_exist_tr_parital_student_entry
GO

Expand Down
120 changes: 0 additions & 120 deletions test/JDBC/expected/xml_exist-before-16_5-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -99,126 +99,6 @@ GO
~~ERROR (Message: schema "col_xml" does not exist)~~


-- UDF wrapper function on exist
CREATE FUNCTION dbo.wrapper_xmlexist1(@xml XML)
RETURNS sys.BIT
AS
BEGIN
RETURN @xml.exist('/artist/@name');
END
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: 'XML EXIST' is not currently supported in Babelfish)~~


-- change the volatility of wrapper_xmlexist1 to immutable
EXEC sys.sp_babelfish_volatility 'wrapper_xmlexist1', 'immutable'
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function does not exist)~~

EXEC sys.sp_babelfish_volatility 'wrapper_xmlexist1'
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function does not exist)~~


-- computed columns on wrapper function
CREATE TABLE babel_5222_xml_exist_compcol1(id INT, col_xml XML, comp_col as dbo.wrapper_xmlexist1(col_xml))
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function master_dbo.wrapper_xmlexist1(xml) does not exist)~~


-- check constraints on wrapper function
CREATE TABLE babel_5222_xml_exist_constraint1(col_xml XML, constraint chkNameExist1 check(wrapper_xmlexist1(col_xml) = 1))
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function wrapper_xmlexist1(xml) does not exist)~~



SET QUOTED_IDENTIFIER OFF
GO

SELECT SESSIONPROPERTY('QUOTED_IDENTIFIER')
GO
~~START~~
sql_variant
0
~~END~~


-- creating dependent view on xml exist when quoted_identifier is OFF
CREATE VIEW babel_5222_xml_exist_dep_view2 AS
SELECT XmlColumn.exist('/artists/artist/@name') as nameExists FROM babel_5222_xml_exist_t1
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: schema "master_xmlcolumn" does not exist)~~


-- creating wrapper function on xml exist when quoted_identifier is OFF
CREATE FUNCTION dbo.wrapper_xmlexist2(@xml XML)
RETURNS sys.BIT
AS
BEGIN
RETURN @xml.exist('/artist/@name');
END
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: 'XML EXIST' is not currently supported in Babelfish)~~


-- change the volatility of wrapper_xmlexist2 to immutable
EXEC sys.sp_babelfish_volatility 'wrapper_xmlexist2', 'immutable'
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function does not exist)~~

EXEC sys.sp_babelfish_volatility 'wrapper_xmlexist2'
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function does not exist)~~


-- creating computed columns on wrapper function when quoted_identifier is OFF
CREATE TABLE babel_5222_xml_exist_compcol2(id INT, col_xml XML, comp_col as dbo.wrapper_xmlexist2(col_xml))
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function master_dbo.wrapper_xmlexist2(xml) does not exist)~~


-- creating check constraints on wrapper function when quoted_identifier is OFF
CREATE TABLE babel_5222_xml_exist_constraint2(col_xml XML, constraint chkNameExist2 check(wrapper_xmlexist2(col_xml) = 1))
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: function wrapper_xmlexist2(xml) does not exist)~~



SET QUOTED_IDENTIFIER ON
GO

SELECT SESSIONPROPERTY('QUOTED_IDENTIFIER')
GO
~~START~~
sql_variant
1
~~END~~



-- Create a table to test the trigger and constraints
CREATE TABLE babel_5222_xml_exist_school_details (
id INT,
Expand Down
Loading

0 comments on commit 64dc91f

Please sign in to comment.