Skip to content

Commit

Permalink
Update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish Prasad committed Oct 8, 2023
1 parent 8f52a9e commit 0500030
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/sql/sys_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ END;
$BODY$
LANGUAGE 'plpgsql' STABLE;

CREATE OR REPLACE FUNCTION typeproperty(
CREATE OR REPLACE FUNCTION sys.typeproperty(
typename sys.VARCHAR,
property sys.VARCHAR
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ CREATE OR REPLACE VIEW information_schema_tsql.key_column_usage AS
;
GRANT SELECT ON information_schema_tsql.key_column_usage TO PUBLIC;

CREATE OR REPLACE FUNCTION typeproperty(
CREATE OR REPLACE FUNCTION sys.typeproperty(
typename sys.VARCHAR,
property sys.VARCHAR
)
Expand Down
1 change: 1 addition & 0 deletions test/JDBC/expected/sys-table_types-dep-vu-cleanup.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
drop procedure sys_table_types_dep_vu_prepare_p1
drop function sys_table_types_dep_vu_prepare_f1
drop view sys_table_types_dep_vu_prepare_v1
drop view sys_table_types_dep_vu_prepare_v2
drop type sys_table_types_dep_vu_prepare_tt
GO
4 changes: 4 additions & 0 deletions test/JDBC/expected/sys-table_types-dep-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ GO
create view sys_table_types_dep_vu_prepare_v1 as
select count(*) from sys.table_types where name = 'sys_table_types_dep_vu_prepare_tt'
GO

create view sys_table_types_dep_vu_prepare_v2 as
select is_nullable from sys.table_types where name = 'sys_table_types_dep_vu_prepare_tt'
GO
8 changes: 8 additions & 0 deletions test/JDBC/expected/sys-table_types-dep-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ int
1
~~END~~


select * from sys_table_types_dep_vu_prepare_v2
GO
~~START~~
bit
0
~~END~~

3 changes: 3 additions & 0 deletions test/JDBC/expected/sys-types-dep-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ CREATE VIEW sys_types_dep_vu_prepare_v1 AS
SELECT count(*) FROM sys.types WHERE name = 'sys_types_dep_vu_prepare_ty1'
GO

CREATE VIEW sys_types_dep_vu_prepare_v2 AS
SELECT is_nullable FROM sys.types WHERE name = 'sys_types_dep_vu_prepare_ty1'
GO
8 changes: 8 additions & 0 deletions test/JDBC/expected/sys-types-dep-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ int
1
~~END~~


SELECT * FROM sys_types_dep_vu_prepare_v2
GO
~~START~~
bit
1
~~END~~

1 change: 1 addition & 0 deletions test/JDBC/input/views/sys-table_types-dep-vu-cleanup.mix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
drop procedure sys_table_types_dep_vu_prepare_p1
drop function sys_table_types_dep_vu_prepare_f1
drop view sys_table_types_dep_vu_prepare_v1
drop view sys_table_types_dep_vu_prepare_v2
drop type sys_table_types_dep_vu_prepare_tt
GO
4 changes: 4 additions & 0 deletions test/JDBC/input/views/sys-table_types-dep-vu-prepare.mix
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ GO
create view sys_table_types_dep_vu_prepare_v1 as
select count(*) from sys.table_types where name = 'sys_table_types_dep_vu_prepare_tt'
GO

create view sys_table_types_dep_vu_prepare_v2 as
select is_nullable from sys.table_types where name = 'sys_table_types_dep_vu_prepare_tt'
GO
3 changes: 3 additions & 0 deletions test/JDBC/input/views/sys-table_types-dep-vu-verify.mix
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ GO

select * from sys_table_types_dep_vu_prepare_v1
GO

select * from sys_table_types_dep_vu_prepare_v2
GO
3 changes: 3 additions & 0 deletions test/JDBC/input/views/sys-types-dep-vu-prepare.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ CREATE VIEW sys_types_dep_vu_prepare_v1 AS
SELECT count(*) FROM sys.types WHERE name = 'sys_types_dep_vu_prepare_ty1'
GO

CREATE VIEW sys_types_dep_vu_prepare_v2 AS
SELECT is_nullable FROM sys.types WHERE name = 'sys_types_dep_vu_prepare_ty1'
GO
3 changes: 3 additions & 0 deletions test/JDBC/input/views/sys-types-dep-vu-verify.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ GO

SELECT * FROM sys_types_dep_vu_prepare_v1
GO

SELECT * FROM sys_types_dep_vu_prepare_v2
GO

0 comments on commit 0500030

Please sign in to comment.