From 5876cd3476386dcc3940a19455f0c9f1cf9acc1b Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 22:56:47 +0000 Subject: [PATCH 01/31] [Windows / SQL Server 2005] baselines --- ...Data.CreateDatabase(SqlServer.2005.MS).sql | 182 ++++++------------ ...ateData.CreateDatabase(SqlServer.2005).sql | 152 +++++---------- 2 files changed, 102 insertions(+), 232 deletions(-) diff --git a/SqlServer.2005.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005.MS).sql b/SqlServer.2005.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005.MS).sql index f44577474a9..5454e6626ca 100644 --- a/SqlServer.2005.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005.MS).sql @@ -574,30 +574,30 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS BEGIN --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN + + + + + + + + + + + + + + + + + + + + + + + + datetime2DataType varchar(50) NULL, datetimeoffsetDataType varchar(50) NULL, datetimeoffset0DataType varchar(50) NULL, @@ -610,26 +610,26 @@ CREATE TABLE AllTypes datetimeoffset7DataType varchar(50) NULL, dateDataType varchar(50) NULL, timeDataType varchar(50) NULL --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -676,11 +676,6 @@ SELECT BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -739,9 +734,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -752,10 +744,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -798,30 +786,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS BEGIN --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN CREATE TABLE LinqDataTypes ( ID int, @@ -840,27 +804,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1021,11 +964,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1063,15 +1001,15 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1097,15 +1035,15 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1270,10 +1208,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1523,10 +1457,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2005.MS SqlServer.2005 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2005/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005).sql b/SqlServer.2005/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005).sql index 37b279dd6fb..53133e9877e 100644 --- a/SqlServer.2005/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005).sql +++ b/SqlServer.2005/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2005).sql @@ -574,28 +574,28 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS BEGIN --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN + + + + + + + + + + + + + + + + + + + + + + datetime2DataType varchar(50) NULL, datetimeoffsetDataType varchar(50) NULL, datetimeoffset0DataType varchar(50) NULL, @@ -608,26 +608,26 @@ CREATE TABLE AllTypes datetimeoffset7DataType varchar(50) NULL, dateDataType varchar(50) NULL, timeDataType varchar(50) NULL --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -674,9 +674,6 @@ SELECT BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -735,9 +732,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -748,10 +742,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -794,28 +784,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS BEGIN --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN CREATE TABLE LinqDataTypes ( ID int, @@ -834,27 +802,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1015,9 +962,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1055,11 +999,11 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 END + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1085,11 +1029,11 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 END + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1254,8 +1198,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1505,8 +1447,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2005 --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 9ea6b22de35d5443c0b802d6cf6407196bfd8387 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:02:08 +0000 Subject: [PATCH 02/31] [Windows / SQL Server 2012] baselines --- ...Data.CreateDatabase(SqlServer.2012.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2012).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2012.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012.MS).sql b/SqlServer.2012.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012.MS).sql index 2f9ae0af137..8c10c46faa6 100644 --- a/SqlServer.2012.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2012.MS SqlServer.2012 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2012/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012).sql b/SqlServer.2012/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012).sql index 600d487eeea..f6697e696d3 100644 --- a/SqlServer.2012/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012).sql +++ b/SqlServer.2012/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2012).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2012 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 130a6fddd3266a6d793384341e63d4ec8b979f9d Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:02:08 +0000 Subject: [PATCH 03/31] [Windows / SQL Server 2008] baselines --- ...Data.CreateDatabase(SqlServer.2008.MS).sql | 141 +++++------------- ...ateData.CreateDatabase(SqlServer.2008).sql | 139 +++++------------ 2 files changed, 82 insertions(+), 198 deletions(-) diff --git a/SqlServer.2008.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008.MS).sql b/SqlServer.2008.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008.MS).sql index 03a0d1e023f..9d8ca2cf766 100644 --- a/SqlServer.2008.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,14 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2008.MS SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2008/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008).sql b/SqlServer.2008/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008).sql index f706768b4ee..809cdf38668 100644 --- a/SqlServer.2008/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008).sql +++ b/SqlServer.2008/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2008).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 END --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2012 END --- SKIP SqlServer.2012.MS END --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,12 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2008 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From ea060ed3b91e68e1600c22f258cfd131567f6a32 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:09:02 +0000 Subject: [PATCH 04/31] [Windows / SQL Server 2014] baselines --- ...Data.CreateDatabase(SqlServer.2014.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2014).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2014.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014.MS).sql b/SqlServer.2014.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014.MS).sql index 44c71515353..21c8b9807ee 100644 --- a/SqlServer.2014.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2014.MS SqlServer.2014 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2014/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014).sql b/SqlServer.2014/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014).sql index b858bc6c535..24fd628bf45 100644 --- a/SqlServer.2014/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014).sql +++ b/SqlServer.2014/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2014).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 END --- SKIP SqlServer.2014.MS END --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2014 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From cf95d9c8711979519e9caf7c4fe89b35cf36a49b Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:13:06 +0000 Subject: [PATCH 05/31] [Linux / Firebird 2.5] baselines --- ...estFirebird(Firebird.2.5,MiniProfiler).sql | 4 +- ...d(Firebird.2.5,MiniProfilerNoMappings).sql | 4 +- ...erTests.TestFirebird(Firebird.2.5,Raw).sql | 4 +- ...ncludeExcludeCatalogTest(Firebird.2.5).sql | 4 +- ...ts.PrimaryForeignKeyTest(Firebird.2.5).sql | 4 +- ...SchemaProviderTests.Test(Firebird.2.5).sql | 4 +- ...Tests.TestApiImplemented(Firebird.2.5).sql | 4 +- ...sts.TestAttributeMapping(Firebird.2.5).sql | 4 +- ...5Tests.TestFluentMapping(Firebird.2.5).sql | 4 +- ...ests.TestWithTransaction(Firebird.2.5).sql | 4 +- ...s.TestWithoutTransaction(Firebird.2.5).sql | 4 +- ...reateData.CreateDatabase(Firebird.2.5).sql | 101 +++++++----------- 12 files changed, 62 insertions(+), 83 deletions(-) diff --git a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfiler).sql b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfiler).sql index be84328a399..3f1b8fc2c6c 100644 --- a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfiler).sql +++ b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfiler).sql @@ -95,8 +95,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfilerNoMappings).sql b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfilerNoMappings).sql index be84328a399..3f1b8fc2c6c 100644 --- a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfilerNoMappings).sql +++ b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,MiniProfilerNoMappings).sql @@ -95,8 +95,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,Raw).sql b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,Raw).sql index be84328a399..3f1b8fc2c6c 100644 --- a/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,Raw).sql +++ b/Firebird.2.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.2.5,Raw).sql @@ -95,8 +95,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.2.5).sql b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.2.5).sql index bc42026325e..bf621445919 100644 --- a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.2.5).sql @@ -88,8 +88,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.2.5).sql b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.2.5).sql index d6672bb10f6..086a9e0c408 100644 --- a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.2.5).sql @@ -88,8 +88,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.2.5).sql b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.2.5).sql index d6672bb10f6..086a9e0c408 100644 --- a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.2.5).sql @@ -88,8 +88,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.2.5).sql b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.2.5).sql index d6672bb10f6..086a9e0c408 100644 --- a/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.2.5).sql @@ -88,8 +88,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.2.5).sql b/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.2.5).sql index 21d6cb13081..712eea69e89 100644 --- a/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.2.5).sql @@ -118,8 +118,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.2.5).sql b/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.2.5).sql index c021117907d..e0420870405 100644 --- a/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.2.5).sql @@ -116,8 +116,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.2.5).sql b/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.2.5).sql index 38f11ebc648..841de7b1bda 100644 --- a/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.2.5).sql @@ -96,8 +96,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.2.5).sql b/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.2.5).sql index 23de292154b..11e27df93f3 100644 --- a/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.2.5).sql @@ -96,8 +96,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.2.5 Firebird -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.2.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.2.5).sql b/Firebird.2.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.2.5).sql index 0e50f70a75a..10b9a8b383d 100644 --- a/Firebird.2.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.2.5).sql +++ b/Firebird.2.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.2.5).sql @@ -1,8 +1,6 @@ BeforeExecute -- Firebird.2.5 Firebird --- SKIP Firebird.2.5 END - DROP PROCEDURE "AddIssue792Record"; BeforeExecute @@ -78,13 +76,7 @@ DROP PROCEDURE "Scalar_ReturnParameter"; BeforeExecute -- Firebird.2.5 Firebird --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN SELECT 1 FROM rdb$database --- SKIP Firebird.4 END --- SKIP Firebird.5 END BeforeExecute -- Firebird.2.5 Firebird @@ -308,14 +300,14 @@ CREATE TABLE "DataTypeTest" ( "DataTypeID" INTEGER NOT NULL PRIMARY KEY, "Binary_" BLOB, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN + + + + "Boolean_" CHAR(1), --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + "Byte_" SMALLINT, "Bytes_" BLOB, CHAR_ CHAR(1), @@ -373,14 +365,14 @@ INSERT INTO "DataTypeTest" "Xml_") VALUES ('dddddddddddddddd', --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN + + + + '1' --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + ,255,'dddddddddddddddd', 'B', 'NOW', 12345.67, 1234.567, X'dddddddddddddddddddddddddddddddd', 32767, 32768, 1000000, 12.3456, 127, 1234.123, 'dddddddddddddddd', 'string', 32767, 32768, 200000000, @@ -430,14 +422,14 @@ CREATE TABLE "LinqDataTypes" "MoneyValue" decimal(10,4), "DateTimeValue" timestamp, "DateTimeValue2" timestamp, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN + + + + "BoolValue" char(1), --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + "GuidValue" CHAR(16) CHARACTER SET OCTETS, "BinaryValue" blob, "SmallIntValue" smallint, @@ -545,7 +537,7 @@ CREATE TABLE "AllTypes" "ncharDataType" char(20) character set UNICODE_FSS, "nvarcharDataType" varchar(20) character set UNICODE_FSS, --- SKIP Firebird.2.5 END + "blobDataType" blob ); @@ -589,7 +581,7 @@ VALUES NULL, NULL, --- SKIP Firebird.2.5 END + NULL ); @@ -619,7 +611,7 @@ VALUES '23233', '3323', --- SKIP Firebird.2.5 END + '12345' ); @@ -796,11 +788,11 @@ BeforeExecute -- Person_Delete CREATE PROCEDURE "Person_Delete"( - PersonID INTEGER + "PersonID" INTEGER ) AS BEGIN - DELETE FROM "Person" WHERE "PersonID" = :PersonID; + DELETE FROM "Person" WHERE "PersonID" = :"PersonID"; END; BeforeExecute @@ -1019,14 +1011,14 @@ CREATE TABLE "TestMerge1" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN + + + + "FieldBoolean" CHAR(1), --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1056,14 +1048,14 @@ CREATE TABLE "TestMerge2" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN + + + + "FieldBoolean" CHAR(1), --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1092,13 +1084,7 @@ END; BeforeExecute -- Firebird.2.5 Firebird --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN SELECT 1 FROM rdb$database --- SKIP Firebird.5 END --- SKIP Firebird.4 END - --- SKIP Firebird.2.5 END BeforeExecute -- Firebird.2.5 Firebird @@ -1118,14 +1104,7 @@ CREATE TABLE "CollatedTable" BeforeExecute -- Firebird.2.5 Firebird --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN SELECT 1 FROM rdb$database --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END BeforeExecute -- Firebird.2.5 Firebird From 2bdbcac5f717bf6b4021189e9fb3f9571c649666 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:16:24 +0000 Subject: [PATCH 06/31] [Linux / DB2 LUW 11.5] baselines --- ...ue792Tests.TestWithTransactionThrowsFromProvider(DB2).sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DB2/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransactionThrowsFromProvider(DB2).sql b/DB2/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransactionThrowsFromProvider(DB2).sql index 8f48d3ab124..5a37fdd38d3 100644 --- a/DB2/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransactionThrowsFromProvider(DB2).sql +++ b/DB2/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransactionThrowsFromProvider(DB2).sql @@ -8,5 +8,10 @@ SELECT FROM ALLTYPES "t1" +BeforeExecute +-- DB2 DB2.LUW DB2LUW + +select current_schema from sysibm.sysdummy1 + BeforeExecute DisposeTransaction From 4e9bb035cffd81cb776f8b3885c11b055bc7b332 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:17:44 +0000 Subject: [PATCH 07/31] [Windows / SQL Server 2016] baselines --- ...Data.CreateDatabase(SqlServer.2016.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2016).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2016.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016.MS).sql b/SqlServer.2016.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016.MS).sql index f349aca92a7..15b7be8bfa9 100644 --- a/SqlServer.2016.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2016.MS SqlServer.2016 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2016/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016).sql b/SqlServer.2016/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016).sql index 411ece04a0b..dfdeb433c0f 100644 --- a/SqlServer.2016/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016).sql +++ b/SqlServer.2016/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2016).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 END --- SKIP SqlServer.2016.MS END --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2016 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 79861c8cb68d1cf73e7430f3319c5d2a29869be4 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:19:10 +0000 Subject: [PATCH 08/31] [Linux / Firebird 5.0] baselines --- ....TestFirebird(Firebird.5,MiniProfiler).sql | 4 +- ...ird(Firebird.5,MiniProfilerNoMappings).sql | 4 +- ...ilerTests.TestFirebird(Firebird.5,Raw).sql | 4 +- ....IncludeExcludeCatalogTest(Firebird.5).sql | 4 +- ...ests.PrimaryForeignKeyTest(Firebird.5).sql | 4 +- ...r.SchemaProviderTests.Test(Firebird.5).sql | 4 +- ...erTests.TestApiImplemented(Firebird.5).sql | 4 +- ...Tests.TestAttributeMapping(Firebird.5).sql | 4 +- ...305Tests.TestFluentMapping(Firebird.5).sql | 4 +- ...2Tests.TestWithTransaction(Firebird.5).sql | 4 +- ...sts.TestWithoutTransaction(Firebird.5).sql | 4 +- ..._CreateData.CreateDatabase(Firebird.5).sql | 131 +++++++----------- 12 files changed, 72 insertions(+), 103 deletions(-) diff --git a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfiler).sql b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfiler).sql index 7e39d6d9d17..b51200761f3 100644 --- a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfiler).sql +++ b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfiler).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfilerNoMappings).sql b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfilerNoMappings).sql index 7e39d6d9d17..b51200761f3 100644 --- a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfilerNoMappings).sql +++ b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,MiniProfilerNoMappings).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,Raw).sql b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,Raw).sql index 7e39d6d9d17..b51200761f3 100644 --- a/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,Raw).sql +++ b/Firebird.5/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.5,Raw).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.5).sql b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.5).sql index 101c6e0a9ed..91cae04e25d 100644 --- a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.5).sql +++ b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.5).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.5).sql b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.5).sql index be94b656bc3..839f372eb34 100644 --- a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.5).sql +++ b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.5).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.5).sql b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.5).sql index be94b656bc3..839f372eb34 100644 --- a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.5).sql +++ b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.5).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.5).sql b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.5).sql index be94b656bc3..839f372eb34 100644 --- a/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.5).sql +++ b/Firebird.5/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.5).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.5).sql b/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.5).sql index 9b062428ca0..071e1ebe49e 100644 --- a/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.5).sql +++ b/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.5).sql @@ -122,8 +122,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.5).sql b/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.5).sql index 2462d4d9882..0c67b75f449 100644 --- a/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.5).sql +++ b/Firebird.5/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.5).sql @@ -120,8 +120,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.5).sql b/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.5).sql index ff535ca89a2..bd25885c95b 100644 --- a/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.5).sql +++ b/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.5).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.5).sql b/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.5).sql index 59522d33d98..93bddf3856a 100644 --- a/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.5).sql +++ b/Firebird.5/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.5).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.5 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.5).sql b/Firebird.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.5).sql index cb9e34645a7..eee312c98d2 100644 --- a/Firebird.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.5).sql +++ b/Firebird.5/a_CreateData/a_CreateData.CreateDatabase(Firebird.5).sql @@ -1,7 +1,6 @@ BeforeExecute -- Firebird.5 Firebird4 --- SKIP Firebird.2.5 BEGIN DROP PACKAGE TEST_PACKAGE1; BeforeExecute @@ -23,17 +22,10 @@ BeforeExecute -- Firebird.5 Firebird4 DROP FUNCTION TEST_FUNCTION; --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END BeforeExecute -- Firebird.5 Firebird4 --- SKIP Firebird.2.5 END - DROP PROCEDURE "AddIssue792Record"; BeforeExecute @@ -109,13 +101,7 @@ DROP PROCEDURE "Scalar_ReturnParameter"; BeforeExecute -- Firebird.5 Firebird4 --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN DROP PROCEDURE test_v4_types; --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END BeforeExecute -- Firebird.5 Firebird4 @@ -339,14 +325,14 @@ CREATE TABLE "DataTypeTest" ( "DataTypeID" INTEGER NOT NULL PRIMARY KEY, "Binary_" BLOB, --- SKIP Firebird.2.5 BEGIN + "Boolean_" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + + + "Byte_" SMALLINT, "Bytes_" BLOB, CHAR_ CHAR(1), @@ -404,14 +390,14 @@ INSERT INTO "DataTypeTest" "Xml_") VALUES ('dddddddddddddddd', --- SKIP Firebird.2.5 BEGIN + TRUE --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + + + ,255,'dddddddddddddddd', 'B', 'NOW', 12345.67, 1234.567, X'dddddddddddddddddddddddddddddddd', 32767, 32768, 1000000, 12.3456, 127, 1234.123, 'dddddddddddddddd', 'string', 32767, 32768, 200000000, @@ -461,14 +447,14 @@ CREATE TABLE "LinqDataTypes" "MoneyValue" decimal(10,4), "DateTimeValue" timestamp, "DateTimeValue2" timestamp, --- SKIP Firebird.2.5 BEGIN + "BoolValue" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + + + "GuidValue" CHAR(16) CHARACTER SET OCTETS, "BinaryValue" blob, "SmallIntValue" smallint, @@ -576,15 +562,15 @@ CREATE TABLE "AllTypes" "ncharDataType" char(20) character set UNICODE_FSS, "nvarcharDataType" varchar(20) character set UNICODE_FSS, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + "timestampTZDataType" timestamp with time zone, "timeTZDataType" time with time zone, "decfloat16DataType" decfloat(16), "decfloat34DataType" decfloat, "int128DataType" int128, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + "blobDataType" blob ); @@ -628,15 +614,15 @@ VALUES NULL, NULL, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + NULL, NULL, NULL, NULL, NULL, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + NULL ); @@ -666,15 +652,15 @@ VALUES '23233', '3323', --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + '2020-12-12 12:24:35 Europe/Andorra', '12:13 Australia/Hobart', 1234567890.123456, 123456789012345678901234567890.1234, 170141183460469231731687303715884105727, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + '12345' ); @@ -851,11 +837,11 @@ BeforeExecute -- Person_Delete CREATE PROCEDURE "Person_Delete"( - PersonID INTEGER + "PersonID" INTEGER ) AS BEGIN - DELETE FROM "Person" WHERE "PersonID" = :PersonID; + DELETE FROM "Person" WHERE "PersonID" = :"PersonID"; END; BeforeExecute @@ -1074,14 +1060,14 @@ CREATE TABLE "TestMerge1" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1111,14 +1097,14 @@ CREATE TABLE "TestMerge2" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1147,12 +1133,6 @@ END; BeforeExecute -- Firebird.5 Firebird4 --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END - --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN CREATE PROCEDURE test_v4_types ( tstz timestamp with time zone, @@ -1180,8 +1160,6 @@ BEGIN :col_int_128 DO SUSPEND; END; --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END BeforeExecute -- Firebird.5 Firebird4 @@ -1201,8 +1179,6 @@ CREATE TABLE "CollatedTable" BeforeExecute -- Firebird.5 Firebird4 --- SKIP Firebird.2.5 BEGIN - CREATE OR ALTER PACKAGE TEST_PACKAGE1 AS BEGIN @@ -1289,7 +1265,7 @@ RETURNS (O INT) AS BEGIN FOR SELECT :I + 3 FROM "Person" - INTO :O + INTO :O DO SUSPEND; END @@ -1302,13 +1278,6 @@ AS RETURN I + 3; END --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 END --- SKIP Firebird.4 END --- SKIP Firebird.3 END - BeforeExecute -- Firebird.5 Firebird4 From 4f130b8631b7a83b6744f290d69f226e6009e505 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:23:57 +0000 Subject: [PATCH 09/31] [Windows / SQL Server 2017] baselines --- ...Data.CreateDatabase(SqlServer.2017.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2017).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2017.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017.MS).sql b/SqlServer.2017.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017.MS).sql index a2c1b922232..30834595311 100644 --- a/SqlServer.2017.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2017.MS SqlServer.2017 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2017/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017).sql b/SqlServer.2017/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017).sql index 8219f35dfd5..294f312e4c6 100644 --- a/SqlServer.2017/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017).sql +++ b/SqlServer.2017/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2017).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 END --- SKIP SqlServer.2017.MS END --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2017 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 70e680e0ca277e3dee0a81d7ca1ed1e40bd658c6 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:24:22 +0000 Subject: [PATCH 10/31] [Linux / Firebird 3.0] baselines --- ....TestFirebird(Firebird.3,MiniProfiler).sql | 4 +- ...ird(Firebird.3,MiniProfilerNoMappings).sql | 4 +- ...ilerTests.TestFirebird(Firebird.3,Raw).sql | 4 +- ....IncludeExcludeCatalogTest(Firebird.3).sql | 4 +- ...ests.PrimaryForeignKeyTest(Firebird.3).sql | 4 +- ...r.SchemaProviderTests.Test(Firebird.3).sql | 4 +- ...erTests.TestApiImplemented(Firebird.3).sql | 4 +- ...Tests.TestAttributeMapping(Firebird.3).sql | 4 +- ...305Tests.TestFluentMapping(Firebird.3).sql | 4 +- ...2Tests.TestWithTransaction(Firebird.3).sql | 4 +- ...sts.TestWithoutTransaction(Firebird.3).sql | 4 +- ..._CreateData.CreateDatabase(Firebird.3).sql | 77 +++++++------------ 12 files changed, 49 insertions(+), 72 deletions(-) diff --git a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfiler).sql b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfiler).sql index 3610ed0aae9..a1ff3dd9ad9 100644 --- a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfiler).sql +++ b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfiler).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfilerNoMappings).sql b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfilerNoMappings).sql index 3610ed0aae9..a1ff3dd9ad9 100644 --- a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfilerNoMappings).sql +++ b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,MiniProfilerNoMappings).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,Raw).sql b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,Raw).sql index 3610ed0aae9..a1ff3dd9ad9 100644 --- a/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,Raw).sql +++ b/Firebird.3/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.3,Raw).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.3).sql b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.3).sql index 19d8d64a4ef..361e62a99e6 100644 --- a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.3).sql +++ b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.3).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.3).sql b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.3).sql index 785583e4190..b53039f087f 100644 --- a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.3).sql +++ b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.3).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.3).sql b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.3).sql index 785583e4190..b53039f087f 100644 --- a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.3).sql +++ b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.3).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.3).sql b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.3).sql index 785583e4190..b53039f087f 100644 --- a/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.3).sql +++ b/Firebird.3/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.3).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.3).sql b/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.3).sql index aad712e0b51..c60fc417c58 100644 --- a/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.3).sql +++ b/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.3).sql @@ -122,8 +122,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.3).sql b/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.3).sql index e7ab1ee46c4..a762228f0b5 100644 --- a/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.3).sql +++ b/Firebird.3/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.3).sql @@ -120,8 +120,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.3).sql b/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.3).sql index 494a6f24d6d..ea6dcc6a80f 100644 --- a/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.3).sql +++ b/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.3).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.3).sql b/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.3).sql index 0d4c2ce83ae..a58ef8fd816 100644 --- a/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.3).sql +++ b/Firebird.3/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.3).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.3 Firebird3 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.3/a_CreateData/a_CreateData.CreateDatabase(Firebird.3).sql b/Firebird.3/a_CreateData/a_CreateData.CreateDatabase(Firebird.3).sql index f6b5b855fd8..c3e7c4d6e8d 100644 --- a/Firebird.3/a_CreateData/a_CreateData.CreateDatabase(Firebird.3).sql +++ b/Firebird.3/a_CreateData/a_CreateData.CreateDatabase(Firebird.3).sql @@ -1,7 +1,6 @@ BeforeExecute -- Firebird.3 Firebird3 --- SKIP Firebird.2.5 BEGIN DROP PACKAGE TEST_PACKAGE1; BeforeExecute @@ -23,13 +22,10 @@ BeforeExecute -- Firebird.3 Firebird3 DROP FUNCTION TEST_FUNCTION; --- SKIP Firebird.3 END BeforeExecute -- Firebird.3 Firebird3 --- SKIP Firebird.2.5 END - DROP PROCEDURE "AddIssue792Record"; BeforeExecute @@ -105,13 +101,7 @@ DROP PROCEDURE "Scalar_ReturnParameter"; BeforeExecute -- Firebird.3 Firebird3 --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 END --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN SELECT 1 FROM rdb$database --- SKIP Firebird.4 END --- SKIP Firebird.5 END BeforeExecute -- Firebird.3 Firebird3 @@ -335,10 +325,10 @@ CREATE TABLE "DataTypeTest" ( "DataTypeID" INTEGER NOT NULL PRIMARY KEY, "Binary_" BLOB, --- SKIP Firebird.2.5 BEGIN + "Boolean_" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END + + "Byte_" SMALLINT, "Bytes_" BLOB, CHAR_ CHAR(1), @@ -396,10 +386,10 @@ INSERT INTO "DataTypeTest" "Xml_") VALUES ('dddddddddddddddd', --- SKIP Firebird.2.5 BEGIN + TRUE --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END + + ,255,'dddddddddddddddd', 'B', 'NOW', 12345.67, 1234.567, X'dddddddddddddddddddddddddddddddd', 32767, 32768, 1000000, 12.3456, 127, 1234.123, 'dddddddddddddddd', 'string', 32767, 32768, 200000000, @@ -449,10 +439,10 @@ CREATE TABLE "LinqDataTypes" "MoneyValue" decimal(10,4), "DateTimeValue" timestamp, "DateTimeValue2" timestamp, --- SKIP Firebird.2.5 BEGIN + "BoolValue" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END + + "GuidValue" CHAR(16) CHARACTER SET OCTETS, "BinaryValue" blob, "SmallIntValue" smallint, @@ -560,9 +550,9 @@ CREATE TABLE "AllTypes" "ncharDataType" char(20) character set UNICODE_FSS, "nvarcharDataType" varchar(20) character set UNICODE_FSS, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + + "blobDataType" blob ); @@ -606,9 +596,9 @@ VALUES NULL, NULL, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + + NULL ); @@ -638,9 +628,9 @@ VALUES '23233', '3323', --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + + '12345' ); @@ -817,11 +807,11 @@ BeforeExecute -- Person_Delete CREATE PROCEDURE "Person_Delete"( - PersonID INTEGER + "PersonID" INTEGER ) AS BEGIN - DELETE FROM "Person" WHERE "PersonID" = :PersonID; + DELETE FROM "Person" WHERE "PersonID" = :"PersonID"; END; BeforeExecute @@ -1040,10 +1030,10 @@ CREATE TABLE "TestMerge1" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1073,10 +1063,10 @@ CREATE TABLE "TestMerge2" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1105,15 +1095,7 @@ END; BeforeExecute -- Firebird.3 Firebird3 --- SKIP Firebird.4 BEGIN --- SKIP Firebird.5 BEGIN SELECT 1 FROM rdb$database --- SKIP Firebird.5 END --- SKIP Firebird.4 END - --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END BeforeExecute -- Firebird.3 Firebird3 @@ -1133,8 +1115,6 @@ CREATE TABLE "CollatedTable" BeforeExecute -- Firebird.3 Firebird3 --- SKIP Firebird.2.5 BEGIN - CREATE OR ALTER PACKAGE TEST_PACKAGE1 AS BEGIN @@ -1221,7 +1201,7 @@ RETURNS (O INT) AS BEGIN FOR SELECT :I + 3 FROM "Person" - INTO :O + INTO :O DO SUSPEND; END @@ -1234,9 +1214,6 @@ AS RETURN I + 3; END --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END - BeforeExecute -- Firebird.3 Firebird3 From d6bb8eb2796cd6a7c41eeb2da6ab1730c59a5648 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:26:35 +0000 Subject: [PATCH 11/31] [Linux / Firebird 4.0] baselines --- ....TestFirebird(Firebird.4,MiniProfiler).sql | 4 +- ...ird(Firebird.4,MiniProfilerNoMappings).sql | 4 +- ...ilerTests.TestFirebird(Firebird.4,Raw).sql | 4 +- ....IncludeExcludeCatalogTest(Firebird.4).sql | 4 +- ...ests.PrimaryForeignKeyTest(Firebird.4).sql | 4 +- ...r.SchemaProviderTests.Test(Firebird.4).sql | 4 +- ...erTests.TestApiImplemented(Firebird.4).sql | 4 +- ...Tests.TestAttributeMapping(Firebird.4).sql | 4 +- ...305Tests.TestFluentMapping(Firebird.4).sql | 4 +- ...2Tests.TestWithTransaction(Firebird.4).sql | 4 +- ...sts.TestWithoutTransaction(Firebird.4).sql | 4 +- ..._CreateData.CreateDatabase(Firebird.4).sql | 105 +++++++----------- 12 files changed, 62 insertions(+), 87 deletions(-) diff --git a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfiler).sql b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfiler).sql index 42bb951fa3a..812742a2058 100644 --- a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfiler).sql +++ b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfiler).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfilerNoMappings).sql b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfilerNoMappings).sql index 42bb951fa3a..812742a2058 100644 --- a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfilerNoMappings).sql +++ b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,MiniProfilerNoMappings).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,Raw).sql b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,Raw).sql index 42bb951fa3a..812742a2058 100644 --- a/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,Raw).sql +++ b/Firebird.4/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestFirebird(Firebird.4,Raw).sql @@ -99,8 +99,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.4).sql b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.4).sql index c43fefa344b..4143db3b9c7 100644 --- a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.4).sql +++ b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(Firebird.4).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.4).sql b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.4).sql index d7e25a1f73c..d965decf42f 100644 --- a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.4).sql +++ b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(Firebird.4).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.4).sql b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.4).sql index d7e25a1f73c..d965decf42f 100644 --- a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.4).sql +++ b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(Firebird.4).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.4).sql b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.4).sql index d7e25a1f73c..d965decf42f 100644 --- a/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.4).sql +++ b/Firebird.4/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(Firebird.4).sql @@ -92,8 +92,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.4).sql b/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.4).sql index 76de9a035b4..d6135d75913 100644 --- a/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.4).sql +++ b/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(Firebird.4).sql @@ -122,8 +122,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.4).sql b/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.4).sql index 5333aa00790..7b63eb1c838 100644 --- a/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.4).sql +++ b/Firebird.4/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(Firebird.4).sql @@ -120,8 +120,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.4).sql b/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.4).sql index 8fe03160680..2ffe664a5c0 100644 --- a/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.4).sql +++ b/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithTransaction(Firebird.4).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.4).sql b/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.4).sql index c6c0daf1de7..0767c09088a 100644 --- a/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.4).sql +++ b/Firebird.4/Tests/UserTests/Issue792Tests/Tests.UserTests.Issue792Tests.TestWithoutTransaction(Firebird.4).sql @@ -100,8 +100,8 @@ SELECT * FROM "Patient_SelectByName"(NULL,NULL) BeforeExecute -- Firebird.4 Firebird4 -DECLARE @PERSONID Integer(4) -- Int32 -SET @PERSONID = 0 +DECLARE @PersonID Integer(4) -- Int32 +SET @PersonID = 0 "Person_Delete" diff --git a/Firebird.4/a_CreateData/a_CreateData.CreateDatabase(Firebird.4).sql b/Firebird.4/a_CreateData/a_CreateData.CreateDatabase(Firebird.4).sql index 36147127649..96e6a4cc4f3 100644 --- a/Firebird.4/a_CreateData/a_CreateData.CreateDatabase(Firebird.4).sql +++ b/Firebird.4/a_CreateData/a_CreateData.CreateDatabase(Firebird.4).sql @@ -1,7 +1,6 @@ BeforeExecute -- Firebird.4 Firebird4 --- SKIP Firebird.2.5 BEGIN DROP PACKAGE TEST_PACKAGE1; BeforeExecute @@ -23,15 +22,10 @@ BeforeExecute -- Firebird.4 Firebird4 DROP FUNCTION TEST_FUNCTION; --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END BeforeExecute -- Firebird.4 Firebird4 --- SKIP Firebird.2.5 END - DROP PROCEDURE "AddIssue792Record"; BeforeExecute @@ -107,13 +101,7 @@ DROP PROCEDURE "Scalar_ReturnParameter"; BeforeExecute -- Firebird.4 Firebird4 --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN DROP PROCEDURE test_v4_types; --- SKIP Firebird.2.5 END --- SKIP Firebird.3 END --- SKIP Firebird.4 END --- SKIP Firebird.5 END BeforeExecute -- Firebird.4 Firebird4 @@ -337,12 +325,12 @@ CREATE TABLE "DataTypeTest" ( "DataTypeID" INTEGER NOT NULL PRIMARY KEY, "Binary_" BLOB, --- SKIP Firebird.2.5 BEGIN + "Boolean_" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + "Byte_" SMALLINT, "Bytes_" BLOB, CHAR_ CHAR(1), @@ -400,12 +388,12 @@ INSERT INTO "DataTypeTest" "Xml_") VALUES ('dddddddddddddddd', --- SKIP Firebird.2.5 BEGIN + TRUE --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + ,255,'dddddddddddddddd', 'B', 'NOW', 12345.67, 1234.567, X'dddddddddddddddddddddddddddddddd', 32767, 32768, 1000000, 12.3456, 127, 1234.123, 'dddddddddddddddd', 'string', 32767, 32768, 200000000, @@ -455,12 +443,12 @@ CREATE TABLE "LinqDataTypes" "MoneyValue" decimal(10,4), "DateTimeValue" timestamp, "DateTimeValue2" timestamp, --- SKIP Firebird.2.5 BEGIN + "BoolValue" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + "GuidValue" CHAR(16) CHARACTER SET OCTETS, "BinaryValue" blob, "SmallIntValue" smallint, @@ -568,15 +556,15 @@ CREATE TABLE "AllTypes" "ncharDataType" char(20) character set UNICODE_FSS, "nvarcharDataType" varchar(20) character set UNICODE_FSS, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + "timestampTZDataType" timestamp with time zone, "timeTZDataType" time with time zone, "decfloat16DataType" decfloat(16), "decfloat34DataType" decfloat, "int128DataType" int128, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + "blobDataType" blob ); @@ -620,15 +608,15 @@ VALUES NULL, NULL, --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + NULL, NULL, NULL, NULL, NULL, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + NULL ); @@ -658,15 +646,15 @@ VALUES '23233', '3323', --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN + + '2020-12-12 12:24:35 Europe/Andorra', '12:13 Australia/Hobart', 1234567890.123456, 123456789012345678901234567890.1234, 170141183460469231731687303715884105727, --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END + + '12345' ); @@ -843,11 +831,11 @@ BeforeExecute -- Person_Delete CREATE PROCEDURE "Person_Delete"( - PersonID INTEGER + "PersonID" INTEGER ) AS BEGIN - DELETE FROM "Person" WHERE "PersonID" = :PersonID; + DELETE FROM "Person" WHERE "PersonID" = :"PersonID"; END; BeforeExecute @@ -1066,12 +1054,12 @@ CREATE TABLE "TestMerge1" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1101,12 +1089,12 @@ CREATE TABLE "TestMerge2" "Field5" INTEGER, "FieldInt64" BIGINT, --- SKIP Firebird.2.5 BEGIN + "FieldBoolean" BOOLEAN, --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END + + + + "FieldString" VARCHAR(20), "FieldNString" VARCHAR(20) CHARACTER SET UNICODE_FSS, "FieldChar" CHAR(1), @@ -1135,10 +1123,6 @@ END; BeforeExecute -- Firebird.4 Firebird4 --- SKIP Firebird.4 END - --- SKIP Firebird.2.5 BEGIN --- SKIP Firebird.3 BEGIN CREATE PROCEDURE test_v4_types ( tstz timestamp with time zone, @@ -1166,8 +1150,6 @@ BEGIN :col_int_128 DO SUSPEND; END; --- SKIP Firebird.3 END --- SKIP Firebird.2.5 END BeforeExecute -- Firebird.4 Firebird4 @@ -1187,8 +1169,6 @@ CREATE TABLE "CollatedTable" BeforeExecute -- Firebird.4 Firebird4 --- SKIP Firebird.2.5 BEGIN - CREATE OR ALTER PACKAGE TEST_PACKAGE1 AS BEGIN @@ -1275,7 +1255,7 @@ RETURNS (O INT) AS BEGIN FOR SELECT :I + 3 FROM "Person" - INTO :O + INTO :O DO SUSPEND; END @@ -1288,11 +1268,6 @@ AS RETURN I + 3; END --- SKIP Firebird.2.5 END --- SKIP Firebird.3 BEGIN --- SKIP Firebird.4 END --- SKIP Firebird.3 END - BeforeExecute -- Firebird.4 Firebird4 From f1d610c7c697053503eed01067c5469a4bf51f4d Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:26:42 +0000 Subject: [PATCH 12/31] [Linux / ClickHouse MySql] baselines --- ...ickHouseDataTypeTest(ClickHouse.MySql).sql | 37 +++++++++++++++++++ ...eData.CreateDatabase(ClickHouse.MySql).sql | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 ClickHouse.MySql/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.MySql).sql diff --git a/ClickHouse.MySql/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.MySql).sql new file mode 100644 index 00000000000..1fa4e4175f2 --- /dev/null +++ b/ClickHouse.MySql/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.MySql).sql @@ -0,0 +1,37 @@ +BeforeExecute +-- ClickHouse.MySql ClickHouse + +select name, comment, engine LIKE '%View' from system.tables where is_temporary = 0 and database = database() + +BeforeExecute +-- ClickHouse.MySql ClickHouse + +select name, primary_key from system.tables where is_temporary = 0 and database = database() and primary_key <> '' + +BeforeExecute +-- ClickHouse.MySql ClickHouse + + +SELECT + table, + name, + type, + position, + comment, + multiIf(type LIKE '%FixedString%', character_octet_length, NULL), + multiIf(type LIKE '%DateTime64%', datetime_precision, numeric_precision_radix = 10, numeric_precision, NULL), + multiIf(numeric_precision_radix = 10, numeric_scale, NULL), + is_in_primary_key +FROM system.columns +WHERE database = database() and default_kind <> 'ALIAS' + +BeforeExecute +-- ClickHouse.MySql ClickHouse + +select hostName() + +BeforeExecute +-- ClickHouse.MySql ClickHouse + +select database() + diff --git a/ClickHouse.MySql/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.MySql).sql b/ClickHouse.MySql/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.MySql).sql index 8bb520610dc..3eb99268884 100644 --- a/ClickHouse.MySql/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.MySql).sql +++ b/ClickHouse.MySql/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.MySql).sql @@ -185,7 +185,8 @@ CREATE TABLE AllTypes ncharDataType Nullable(FixedString(20)), char20DataType Nullable(FixedString(20)), varcharDataType Nullable(String), - charDataType Nullable(FixedString(1)) + charDataType Nullable(FixedString(1)), + bitDataType Nullable(BIT) ) ENGINE = MergeTree() ORDER BY ID PRIMARY KEY ID; From e88cfe329dd5c19c8d56ed266cbc486410e3c1a5 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:31:22 +0000 Subject: [PATCH 13/31] [Linux / ClickHouse Client] baselines --- ...ckHouseDataTypeTest(ClickHouse.Client).sql | 37 +++++++++++++++++++ ...Data.CreateDatabase(ClickHouse.Client).sql | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 ClickHouse.Client/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Client).sql diff --git a/ClickHouse.Client/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Client).sql b/ClickHouse.Client/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Client).sql new file mode 100644 index 00000000000..99b16370bdc --- /dev/null +++ b/ClickHouse.Client/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Client).sql @@ -0,0 +1,37 @@ +BeforeExecute +-- ClickHouse.Client ClickHouse + +select name, comment, engine LIKE '%View' from system.tables where is_temporary = 0 and database = database() + +BeforeExecute +-- ClickHouse.Client ClickHouse + +select name, primary_key from system.tables where is_temporary = 0 and database = database() and primary_key <> '' + +BeforeExecute +-- ClickHouse.Client ClickHouse + + +SELECT + table, + name, + type, + position, + comment, + multiIf(type LIKE '%FixedString%', character_octet_length, NULL), + multiIf(type LIKE '%DateTime64%', datetime_precision, numeric_precision_radix = 10, numeric_precision, NULL), + multiIf(numeric_precision_radix = 10, numeric_scale, NULL), + is_in_primary_key +FROM system.columns +WHERE database = database() and default_kind <> 'ALIAS' + +BeforeExecute +-- ClickHouse.Client ClickHouse + +select hostName() + +BeforeExecute +-- ClickHouse.Client ClickHouse + +select database() + diff --git a/ClickHouse.Client/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Client).sql b/ClickHouse.Client/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Client).sql index 95083c4e32a..307720d9855 100644 --- a/ClickHouse.Client/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Client).sql +++ b/ClickHouse.Client/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Client).sql @@ -185,7 +185,8 @@ CREATE TABLE AllTypes ncharDataType Nullable(FixedString(20)), char20DataType Nullable(FixedString(20)), varcharDataType Nullable(String), - charDataType Nullable(FixedString(1)) + charDataType Nullable(FixedString(1)), + bitDataType Nullable(BIT) ) ENGINE = MergeTree() ORDER BY ID PRIMARY KEY ID; From c6c15bc020528aa06f54978388af8e0fd494bf86 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:32:25 +0000 Subject: [PATCH 14/31] [Windows / SQL Server 2019] baselines --- ...Data.CreateDatabase(SqlServer.2019.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2019).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2019.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019.MS).sql b/SqlServer.2019.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019.MS).sql index 99a0558f0b3..a7f4626350f 100644 --- a/SqlServer.2019.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2019.MS SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2019/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019).sql b/SqlServer.2019/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019).sql index 5cf7650f87d..f6c0fbc4d88 100644 --- a/SqlServer.2019/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019).sql +++ b/SqlServer.2019/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2019).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 END --- SKIP SqlServer.2019.MS END --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 9765aca135c055fa04591bc3b47d8e7a47d7bcbf Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:32:39 +0000 Subject: [PATCH 15/31] [Linux / MariaDB 11] baselines --- ..._CreateData.CreateDatabase(MariaDB.11).sql | 65 ++++++++----------- 1 file changed, 26 insertions(+), 39 deletions(-) diff --git a/MariaDB.11/a_CreateData/a_CreateData.CreateDatabase(MariaDB.11).sql b/MariaDB.11/a_CreateData/a_CreateData.CreateDatabase(MariaDB.11).sql index 141ec439677..95e874eea7a 100644 --- a/MariaDB.11/a_CreateData/a_CreateData.CreateDatabase(MariaDB.11).sql +++ b/MariaDB.11/a_CreateData/a_CreateData.CreateDatabase(MariaDB.11).sql @@ -451,16 +451,16 @@ CREATE TABLE TestMerge1 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 BEGIN --- SKIP MySqlConnector.8.0 BEGIN + + + + FieldTime TIME(6) NULL, --- SKIP MySql.5.7 END --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 END + + + + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -492,16 +492,16 @@ CREATE TABLE TestMerge2 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 BEGIN --- SKIP MySqlConnector.8.0 BEGIN + + + + FieldTime TIME(6) NULL, --- SKIP MySql.5.7 END --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 END + + + + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -733,8 +733,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `Enum` ENUM('one', 'two'), IN `Set` ENUM('one', 'two'), --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + IN `Json` JSON, IN `Geometry` GEOMETRY, IN `Point` POINT, @@ -744,8 +744,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `MultiLineString` MULTILINESTRING, IN `MultiPolygon` MULTIPOLYGON, IN `GeometryCollection` GEOMETRYCOLLECTION, --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + IN `Year` YEAR ) @@ -793,8 +793,8 @@ BEGIN `Set`, `Year` --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + ,`Json`, `Geometry`, `Point`, @@ -804,8 +804,8 @@ BEGIN `MultiLineString`, `MultiPolygon`, `GeometryCollection` --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + FROM Person; END @@ -828,11 +828,6 @@ CREATE TABLE `CollatedTable` BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.8.0 BEGIN --- SKIP MySql.5.7 BEGIN --- SKIP MySqlConnector.5.7 BEGIN - CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURNS INT RETURN i + 3 BeforeExecute @@ -898,14 +893,6 @@ set session sql_mode=default BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql --- SKIP MySqlConnector.5.7 END --- SKIP MySql.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MySql.8.0 END - -BeforeExecute --- MariaDB.11 MariaDB.10.MySqlConnector MySql - INSERT INTO `LinqDataTypes` ( `ID`, From 395683215842ce1741026f37af7837d76f24ccd8 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:33:56 +0000 Subject: [PATCH 16/31] [Linux / MySQL 5.7 (both providers)] baselines --- ...a_CreateData.CreateDatabase(MySql.5.7).sql | 37 +++++--------- ...ata.CreateDatabase(MySqlConnector.5.7).sql | 51 ++++++++----------- 2 files changed, 34 insertions(+), 54 deletions(-) diff --git a/MySql.5.7/a_CreateData/a_CreateData.CreateDatabase(MySql.5.7).sql b/MySql.5.7/a_CreateData/a_CreateData.CreateDatabase(MySql.5.7).sql index 6fe14b69ffb..248a946a3e5 100644 --- a/MySql.5.7/a_CreateData/a_CreateData.CreateDatabase(MySql.5.7).sql +++ b/MySql.5.7/a_CreateData/a_CreateData.CreateDatabase(MySql.5.7).sql @@ -451,13 +451,13 @@ CREATE TABLE TestMerge1 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 END --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -489,13 +489,13 @@ CREATE TABLE TestMerge2 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 END --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -727,7 +727,7 @@ CREATE PROCEDURE `Issue2313Results`( IN `Enum` ENUM('one', 'two'), IN `Set` ENUM('one', 'two'), --- SKIP MySql.5.7 END + IN `Year` YEAR ) @@ -775,7 +775,7 @@ BEGIN `Set`, `Year` --- SKIP MySql.5.7 END + FROM Person; END @@ -798,15 +798,6 @@ CREATE TABLE `CollatedTable` BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.8.0 BEGIN --- SKIP MySql.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MySql.8.0 END - -BeforeExecute --- MySql.5.7 MySql.5.7.MySql.Data MySql57 - INSERT INTO `LinqDataTypes` ( `ID`, diff --git a/MySqlConnector.5.7/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.5.7).sql b/MySqlConnector.5.7/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.5.7).sql index 253e529d8fc..191c4d61a3d 100644 --- a/MySqlConnector.5.7/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.5.7).sql @@ -451,13 +451,13 @@ CREATE TABLE TestMerge1 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -489,13 +489,13 @@ CREATE TABLE TestMerge2 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -727,8 +727,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `Enum` ENUM('one', 'two'), IN `Set` ENUM('one', 'two'), --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + IN `Json` JSON, IN `Geometry` GEOMETRY, IN `Point` POINT, @@ -738,8 +738,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `MultiLineString` MULTILINESTRING, IN `MultiPolygon` MULTIPOLYGON, IN `GeometryCollection` GEOMETRYCOLLECTION, --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + IN `Year` YEAR ) @@ -787,8 +787,8 @@ BEGIN `Set`, `Year` --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + ,`Json`, `Geometry`, `Point`, @@ -798,8 +798,8 @@ BEGIN `MultiLineString`, `MultiPolygon`, `GeometryCollection` --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + FROM Person; END @@ -822,17 +822,6 @@ CREATE TABLE `CollatedTable` BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.8.0 BEGIN --- SKIP MySql.5.7 BEGIN --- SKIP MySqlConnector.5.7 END --- SKIP MySql.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MySql.8.0 END - -BeforeExecute --- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 - INSERT INTO `LinqDataTypes` ( `ID`, From bd101cb2fb271731e73482ce425afc162e672462 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:36:06 +0000 Subject: [PATCH 17/31] [Windows / SQL Server 2022] baselines --- ...Data.CreateDatabase(SqlServer.2022.MS).sql | 142 +++++------------- ...ateData.CreateDatabase(SqlServer.2022).sql | 142 +++++------------- 2 files changed, 82 insertions(+), 202 deletions(-) diff --git a/SqlServer.2022.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022.MS).sql b/SqlServer.2022.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022.MS).sql index 7c74ed35b77..ac5298e22d7 100644 --- a/SqlServer.2022.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2022.MS SqlServer.2022 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.2022/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022).sql b/SqlServer.2022/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022).sql index e55e895b91b..ac0b304db70 100644 --- a/SqlServer.2022/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022).sql +++ b/SqlServer.2022/a_CreateData/a_CreateData.CreateDatabase(SqlServer.2022).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 END --- SKIP SqlServer.2022.MS END --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.2022 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute From 98326c56ef51b4dad2a42ec20ac9bb3e89408c66 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:36:43 +0000 Subject: [PATCH 18/31] [Linux / MySQL 9 (both providers)] baselines --- ...a_CreateData.CreateDatabase(MySql.8.0).sql | 41 +++++++--------- ...ata.CreateDatabase(MySqlConnector.8.0).sql | 47 ++++++++----------- 2 files changed, 38 insertions(+), 50 deletions(-) diff --git a/MySql.8.0/a_CreateData/a_CreateData.CreateDatabase(MySql.8.0).sql b/MySql.8.0/a_CreateData/a_CreateData.CreateDatabase(MySql.8.0).sql index 1bbe641969e..3465bf9ebb3 100644 --- a/MySql.8.0/a_CreateData/a_CreateData.CreateDatabase(MySql.8.0).sql +++ b/MySql.8.0/a_CreateData/a_CreateData.CreateDatabase(MySql.8.0).sql @@ -451,13 +451,13 @@ CREATE TABLE TestMerge1 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -489,13 +489,13 @@ CREATE TABLE TestMerge2 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 END --- SKIP MySqlConnector.5.7 END --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -727,9 +727,9 @@ CREATE PROCEDURE `Issue2313Results`( IN `Enum` ENUM('one', 'two'), IN `Set` ENUM('one', 'two'), --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + + IN `Year` YEAR ) @@ -777,9 +777,9 @@ BEGIN `Set`, `Year` --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + + FROM Person; END @@ -802,11 +802,6 @@ CREATE TABLE `CollatedTable` BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 --- SKIP MySql.8.0 END - -BeforeExecute --- MySql.8.0 MySql.8.0.MySql.Data MySql80 - INSERT INTO `LinqDataTypes` ( `ID`, diff --git a/MySqlConnector.8.0/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.8.0).sql b/MySqlConnector.8.0/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.8.0).sql index 54a4a6a5a2a..5e2044731e5 100644 --- a/MySqlConnector.8.0/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/a_CreateData/a_CreateData.CreateDatabase(MySqlConnector.8.0).sql @@ -451,13 +451,13 @@ CREATE TABLE TestMerge1 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 BEGIN --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -489,13 +489,13 @@ CREATE TABLE TestMerge2 FieldGuid CHAR(36) NULL, FieldDecimal DECIMAL(24, 10) NULL, FieldDate DATE NULL, --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.5.7 BEGIN --- SKIP MySqlConnector.8.0 END --- SKIP MariaDB.11 BEGIN + + + + + FieldTime TIME NULL, --- SKIP MariaDB.11 END + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL, @@ -727,8 +727,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `Enum` ENUM('one', 'two'), IN `Set` ENUM('one', 'two'), --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + IN `Json` JSON, IN `Geometry` GEOMETRY, IN `Point` POINT, @@ -738,8 +738,8 @@ CREATE PROCEDURE `Issue2313Results`( IN `MultiLineString` MULTILINESTRING, IN `MultiPolygon` MULTIPOLYGON, IN `GeometryCollection` GEOMETRYCOLLECTION, --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + IN `Year` YEAR ) @@ -787,8 +787,8 @@ BEGIN `Set`, `Year` --- SKIP MySql.5.7 BEGIN --- SKIP MySql.8.0 BEGIN + + ,`Json`, `Geometry`, `Point`, @@ -798,8 +798,8 @@ BEGIN `MultiLineString`, `MultiPolygon`, `GeometryCollection` --- SKIP MySql.8.0 END --- SKIP MySql.5.7 END + + FROM Person; END @@ -822,13 +822,6 @@ CREATE TABLE `CollatedTable` BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 --- SKIP MySql.8.0 BEGIN --- SKIP MySqlConnector.8.0 END --- SKIP MySql.8.0 END - -BeforeExecute --- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 - INSERT INTO `LinqDataTypes` ( `ID`, From d3208ca07d90d23ff634a3fad52ac611929c2201 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:43:01 +0100 Subject: [PATCH 19/31] [Linux / Oracle 11g XE] baselines --- ...Data.CreateDatabase(Oracle.11.Managed).sql | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Oracle.11.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.11.Managed).sql b/Oracle.11.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.11.Managed).sql index 6acd00dfb59..8840e025a46 100644 --- a/Oracle.11.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.11.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.11.Managed Oracle11 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.11.Managed Oracle11 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.11.Managed Oracle11 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From 4b03a6fc8f770ad028c5422716c9f0bd7c18e31e Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:43:59 +0000 Subject: [PATCH 20/31] [Linux / PostgreSQL 14] baselines --- ...PostgreSQL(PostgreSQL.14,MiniProfiler).sql | 27 +++---- ...(PostgreSQL.14,MiniProfilerNoMappings).sql | 27 +++---- ...ests.TestPostgreSQL(PostgreSQL.14,Raw).sql | 27 +++---- ...eSQLTests.Issue3352Test(PostgreSQL.14).sql | 27 +++---- ...Tests.PartitionedTables(PostgreSQL.14).sql | 27 +++---- ...Tests.UIntXXMappingTest(PostgreSQL.14).sql | 27 +++---- ...QLTests.DescriptionTest(PostgreSQL.14).sql | 27 +++---- ...(PostgreSQL.14,TestFunctionParameters).sql | 27 +++---- ...Test(PostgreSQL.14,TestScalarFunction).sql | 27 +++---- ...SQL.14,TestSingleOutParameterFunction).sql | 27 +++---- ...rTest(PostgreSQL.14,TestTableFunction).sql | 27 +++---- ...Test(PostgreSQL.14,TestTableFunction1).sql | 27 +++---- ...PostgreSQL.14,TestTableFunctionSchema).sql | 27 +++---- ...maProviderTest(PostgreSQL.14,test_avg).sql | 27 +++---- ...tMaterializedViewSchema(PostgreSQL.14).sql | 27 +++---- ...cludeExcludeCatalogTest(PostgreSQL.14).sql | 81 +++++++++---------- ...ncludeExcludeSchemaTest(PostgreSQL.14).sql | 81 +++++++++---------- ...derTests.PostgreSQLTest(PostgreSQL.14).sql | 27 +++---- ...s.PrimaryForeignKeyTest(PostgreSQL.14).sql | 27 +++---- ...chemaProviderTests.Test(PostgreSQL.14).sql | 27 +++---- ...ests.TestApiImplemented(PostgreSQL.14).sql | 27 +++---- ...ts.TestAttributeMapping(PostgreSQL.14).sql | 27 +++---- ...Tests.TestFluentMapping(PostgreSQL.14).sql | 27 +++---- ...eateData.CreateDatabase(PostgreSQL.14).sql | 36 +++------ 24 files changed, 364 insertions(+), 401 deletions(-) diff --git a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfiler).sql b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfiler).sql index 84311b0c8d1..7b105ef060c 100644 --- a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfiler).sql +++ b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfiler).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfilerNoMappings).sql b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfilerNoMappings).sql index fd87f5380e0..14d26cca411 100644 --- a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfilerNoMappings).sql +++ b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,MiniProfilerNoMappings).sql @@ -4304,20 +4304,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,Raw).sql b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,Raw).sql index 84311b0c8d1..7b105ef060c 100644 --- a/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,Raw).sql +++ b/PostgreSQL.14/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.14,Raw).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.14).sql b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.14).sql index 791dd1b4087..91057c4ca37 100644 --- a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.14).sql b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.14).sql index 791dd1b4087..91057c4ca37 100644 --- a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.14).sql index e1981897836..05a6f894b16 100644 --- a/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.14).sql @@ -161,20 +161,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.14).sql index 791dd1b4087..91057c4ca37 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestFunctionParameters).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestFunctionParameters).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestFunctionParameters).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestFunctionParameters).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestScalarFunction).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestScalarFunction).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestScalarFunction).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestScalarFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestSingleOutParameterFunction).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestSingleOutParameterFunction).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestSingleOutParameterFunction).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestSingleOutParameterFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction1).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction1).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction1).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunction1).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunctionSchema).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunctionSchema).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunctionSchema).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,TestTableFunctionSchema).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,test_avg).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,test_avg).sql index e4f905c64eb..c5d5bdf99eb 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,test_avg).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.14,test_avg).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.14).sql index 791dd1b4087..91057c4ca37 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.14).sql index 68c45556fe7..5a237d4df7d 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.14).sql index a26fa6bc1a8..a136080ad08 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.14).sql index 36b01b88757..89b053fce17 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.14).sql @@ -73,20 +73,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.14).sql index b1419919d9d..bd959f2fa83 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.14).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.14).sql index b1419919d9d..bd959f2fa83 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.14).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.14).sql b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.14).sql index 791dd1b4087..91057c4ca37 100644 --- a/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.14).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.14).sql b/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.14).sql index c197e02034f..90b58f83243 100644 --- a/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.14).sql @@ -77,20 +77,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.14).sql b/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.14).sql index 8d3f121f132..1754ec14256 100644 --- a/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.14).sql @@ -75,20 +75,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.14/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.14).sql b/PostgreSQL.14/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.14).sql index 722ec0f59b4..0eddd0eb871 100644 --- a/PostgreSQL.14/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.14).sql +++ b/PostgreSQL.14/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.14).sql @@ -16,9 +16,7 @@ DROP FUNCTION IF EXISTS "TestTableFunctionSchema"() BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN DROP MATERIALIZED VIEW IF EXISTS "Issue2023" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -396,20 +394,20 @@ CREATE TABLE "AllTypes" "inetDataType" inet NULL, "cidrDataType" cidr NULL, "macaddrDataType" macaddr NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + "macaddr8DataType" macaddr8 NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END + + + "jsonDataType" json NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN + + "jsonbDataType" jsonb NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END + + "xmlDataType" xml NULL, "varBitDataType" varbit NULL, @@ -801,17 +799,13 @@ LANGUAGE plpgsql; BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN CREATE MATERIALIZED VIEW "Issue2023" AS select * from "Person" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN COMMENT ON MATERIALIZED VIEW "Issue2023" IS 'This is the Issue2023 matview'; COMMENT ON COLUMN "Issue2023"."PersonID" IS 'This is the Issue2023.PersonID column'; --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL @@ -936,9 +930,9 @@ AS $function$ $function$ ; --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + DROP TABLE IF EXISTS multitenant_table; @@ -971,10 +965,6 @@ INSERT INTO multitenant_table (TenantId, Id, Name, Description, CreatedAt) VALUE ('33333333-3333-3333-3333-333333333333', 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee', 'Tenant3 Record1', 'Description for Tenant3 Record1', NOW()), ('33333333-3333-3333-3333-333333333333', 'ffffffff-ffff-ffff-ffff-ffffffffffff', 'Tenant3 Record2', 'Description for Tenant3 Record2', NOW()); --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END - BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL From 4c4b6f401b3e49761e3c0e210c2ca6ff4bff05cb Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:46:45 +0100 Subject: [PATCH 21/31] [Linux / Oracle 12c] baselines --- ...Data.CreateDatabase(Oracle.12.Managed).sql | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Oracle.12.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.12.Managed).sql b/Oracle.12.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.12.Managed).sql index 5ca1b438be9..b507df0c8a3 100644 --- a/Oracle.12.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.12.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From 020b3e10c57c06a7efdadd6703dde68ee3ab62bc Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:51:19 +0000 Subject: [PATCH 22/31] [Linux / PostgreSQL 13] baselines --- ...PostgreSQL(PostgreSQL.13,MiniProfiler).sql | 27 +++---- ...(PostgreSQL.13,MiniProfilerNoMappings).sql | 27 +++---- ...ests.TestPostgreSQL(PostgreSQL.13,Raw).sql | 27 +++---- ...eSQLTests.Issue3352Test(PostgreSQL.13).sql | 27 +++---- ...Tests.PartitionedTables(PostgreSQL.13).sql | 27 +++---- ...Tests.UIntXXMappingTest(PostgreSQL.13).sql | 27 +++---- ...QLTests.DescriptionTest(PostgreSQL.13).sql | 27 +++---- ...(PostgreSQL.13,TestFunctionParameters).sql | 27 +++---- ...Test(PostgreSQL.13,TestScalarFunction).sql | 27 +++---- ...SQL.13,TestSingleOutParameterFunction).sql | 27 +++---- ...rTest(PostgreSQL.13,TestTableFunction).sql | 27 +++---- ...Test(PostgreSQL.13,TestTableFunction1).sql | 27 +++---- ...PostgreSQL.13,TestTableFunctionSchema).sql | 27 +++---- ...maProviderTest(PostgreSQL.13,test_avg).sql | 27 +++---- ...tMaterializedViewSchema(PostgreSQL.13).sql | 27 +++---- ...cludeExcludeCatalogTest(PostgreSQL.13).sql | 81 +++++++++---------- ...ncludeExcludeSchemaTest(PostgreSQL.13).sql | 81 +++++++++---------- ...derTests.PostgreSQLTest(PostgreSQL.13).sql | 27 +++---- ...s.PrimaryForeignKeyTest(PostgreSQL.13).sql | 27 +++---- ...chemaProviderTests.Test(PostgreSQL.13).sql | 27 +++---- ...ests.TestApiImplemented(PostgreSQL.13).sql | 27 +++---- ...ts.TestAttributeMapping(PostgreSQL.13).sql | 27 +++---- ...Tests.TestFluentMapping(PostgreSQL.13).sql | 27 +++---- ...eateData.CreateDatabase(PostgreSQL.13).sql | 36 +++------ 24 files changed, 364 insertions(+), 401 deletions(-) diff --git a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfiler).sql b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfiler).sql index 84311b0c8d1..7b105ef060c 100644 --- a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfiler).sql +++ b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfiler).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfilerNoMappings).sql b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfilerNoMappings).sql index fd87f5380e0..14d26cca411 100644 --- a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfilerNoMappings).sql +++ b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,MiniProfilerNoMappings).sql @@ -4304,20 +4304,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,Raw).sql b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,Raw).sql index 84311b0c8d1..7b105ef060c 100644 --- a/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,Raw).sql +++ b/PostgreSQL.13/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.13,Raw).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.13).sql b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.13).sql index cc1c208d3b5..3174f710b05 100644 --- a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.13).sql b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.13).sql index cc1c208d3b5..3174f710b05 100644 --- a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.13).sql index cc2f75e8a99..b42a6259d2c 100644 --- a/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.13).sql @@ -161,20 +161,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.13).sql index cc1c208d3b5..3174f710b05 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestFunctionParameters).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestFunctionParameters).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestFunctionParameters).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestFunctionParameters).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestScalarFunction).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestScalarFunction).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestScalarFunction).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestScalarFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestSingleOutParameterFunction).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestSingleOutParameterFunction).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestSingleOutParameterFunction).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestSingleOutParameterFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction1).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction1).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction1).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunction1).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunctionSchema).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunctionSchema).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunctionSchema).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,TestTableFunctionSchema).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,test_avg).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,test_avg).sql index 8c9eccea62e..d6df64baadb 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,test_avg).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.13,test_avg).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.13).sql index cc1c208d3b5..3174f710b05 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.13).sql index 582b31c66ee..b5f70ef5c54 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.13).sql index 8b813823461..b4ef2966ca9 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.13).sql index 0bd1ebe53a8..4dcb090a759 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.13).sql @@ -73,20 +73,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.13).sql index 842aa8d9a4f..ee958034d75 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.13).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.13).sql index 842aa8d9a4f..ee958034d75 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.13).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.13).sql b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.13).sql index cc1c208d3b5..3174f710b05 100644 --- a/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.13).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.13).sql b/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.13).sql index 2a87b369eb5..a250c880654 100644 --- a/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.13).sql @@ -77,20 +77,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.13).sql b/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.13).sql index a137a776c0c..cb760f03234 100644 --- a/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.13).sql @@ -75,20 +75,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL diff --git a/PostgreSQL.13/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.13).sql b/PostgreSQL.13/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.13).sql index e2dfaacdc4b..3ff1b0f45da 100644 --- a/PostgreSQL.13/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.13).sql +++ b/PostgreSQL.13/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.13).sql @@ -16,9 +16,7 @@ DROP FUNCTION IF EXISTS "TestTableFunctionSchema"() BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN DROP MATERIALIZED VIEW IF EXISTS "Issue2023" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -396,20 +394,20 @@ CREATE TABLE "AllTypes" "inetDataType" inet NULL, "cidrDataType" cidr NULL, "macaddrDataType" macaddr NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + "macaddr8DataType" macaddr8 NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END + + + "jsonDataType" json NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN + + "jsonbDataType" jsonb NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END + + "xmlDataType" xml NULL, "varBitDataType" varbit NULL, @@ -801,17 +799,13 @@ LANGUAGE plpgsql; BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN CREATE MATERIALIZED VIEW "Issue2023" AS select * from "Person" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN COMMENT ON MATERIALIZED VIEW "Issue2023" IS 'This is the Issue2023 matview'; COMMENT ON COLUMN "Issue2023"."PersonID" IS 'This is the Issue2023.PersonID column'; --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL @@ -936,9 +930,9 @@ AS $function$ $function$ ; --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + DROP TABLE IF EXISTS multitenant_table; @@ -971,10 +965,6 @@ INSERT INTO multitenant_table (TenantId, Id, Name, Description, CreatedAt) VALUE ('33333333-3333-3333-3333-333333333333', 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee', 'Tenant3 Record1', 'Description for Tenant3 Record1', NOW()), ('33333333-3333-3333-3333-333333333333', 'ffffffff-ffff-ffff-ffff-ffffffffffff', 'Tenant3 Record2', 'Description for Tenant3 Record2', NOW()); --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END - BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL From cd8ed1bb078efa31b4be58bb9e4b3a3941092ab4 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:53:04 +0000 Subject: [PATCH 23/31] [Linux / PostgreSQL 15] baselines --- ...PostgreSQL(PostgreSQL.15,MiniProfiler).sql | 27 +++---- ...(PostgreSQL.15,MiniProfilerNoMappings).sql | 27 +++---- ...ests.TestPostgreSQL(PostgreSQL.15,Raw).sql | 27 +++---- ...eSQLTests.Issue3352Test(PostgreSQL.15).sql | 27 +++---- ...Tests.PartitionedTables(PostgreSQL.15).sql | 27 +++---- ...Tests.UIntXXMappingTest(PostgreSQL.15).sql | 27 +++---- ...QLTests.DescriptionTest(PostgreSQL.15).sql | 27 +++---- ...(PostgreSQL.15,TestFunctionParameters).sql | 27 +++---- ...Test(PostgreSQL.15,TestScalarFunction).sql | 27 +++---- ...SQL.15,TestSingleOutParameterFunction).sql | 27 +++---- ...rTest(PostgreSQL.15,TestTableFunction).sql | 27 +++---- ...Test(PostgreSQL.15,TestTableFunction1).sql | 27 +++---- ...PostgreSQL.15,TestTableFunctionSchema).sql | 27 +++---- ...maProviderTest(PostgreSQL.15,test_avg).sql | 27 +++---- ...tMaterializedViewSchema(PostgreSQL.15).sql | 27 +++---- ...cludeExcludeCatalogTest(PostgreSQL.15).sql | 81 +++++++++---------- ...ncludeExcludeSchemaTest(PostgreSQL.15).sql | 81 +++++++++---------- ...derTests.PostgreSQLTest(PostgreSQL.15).sql | 27 +++---- ...s.PrimaryForeignKeyTest(PostgreSQL.15).sql | 27 +++---- ...chemaProviderTests.Test(PostgreSQL.15).sql | 27 +++---- ...ests.TestApiImplemented(PostgreSQL.15).sql | 27 +++---- ...ts.TestAttributeMapping(PostgreSQL.15).sql | 27 +++---- ...Tests.TestFluentMapping(PostgreSQL.15).sql | 27 +++---- ...eateData.CreateDatabase(PostgreSQL.15).sql | 36 +++------ 24 files changed, 364 insertions(+), 401 deletions(-) diff --git a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfiler).sql b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfiler).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfiler).sql +++ b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfiler).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfilerNoMappings).sql b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfilerNoMappings).sql index 82836206585..603e1c4ea27 100644 --- a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfilerNoMappings).sql +++ b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,MiniProfilerNoMappings).sql @@ -4304,20 +4304,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,Raw).sql b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,Raw).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,Raw).sql +++ b/PostgreSQL.15/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.15,Raw).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.15).sql b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.15).sql index aa7d4d47906..ae1a41ec8e6 100644 --- a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.15).sql b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.15).sql index aa7d4d47906..ae1a41ec8e6 100644 --- a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.15).sql index 2b47009d678..2ec56c5f58f 100644 --- a/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.15).sql @@ -161,20 +161,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.15).sql index aa7d4d47906..ae1a41ec8e6 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestFunctionParameters).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestFunctionParameters).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestFunctionParameters).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestFunctionParameters).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestScalarFunction).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestScalarFunction).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestScalarFunction).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestScalarFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestSingleOutParameterFunction).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestSingleOutParameterFunction).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestSingleOutParameterFunction).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestSingleOutParameterFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction1).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction1).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction1).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunction1).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunctionSchema).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunctionSchema).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunctionSchema).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,TestTableFunctionSchema).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,test_avg).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,test_avg).sql index 5c8defcb1a3..88abb84ec46 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,test_avg).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.15,test_avg).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.15).sql index aa7d4d47906..ae1a41ec8e6 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.15).sql index e10fdeb285d..7f91561eeec 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.15).sql index 3ef14eff05a..c662ecd327e 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.15).sql index 71475d23635..9ac6bf20c36 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.15).sql @@ -73,20 +73,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.15).sql index 0257891851e..8a4aa16bdbf 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.15).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.15).sql index 0257891851e..8a4aa16bdbf 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.15).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.15).sql b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.15).sql index aa7d4d47906..ae1a41ec8e6 100644 --- a/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.15).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.15).sql b/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.15).sql index d5841e0696f..11f9f6067ab 100644 --- a/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.15).sql @@ -77,20 +77,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.15).sql b/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.15).sql index e742fe21c4d..2591d201be5 100644 --- a/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.15).sql @@ -75,20 +75,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.15/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.15).sql b/PostgreSQL.15/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.15).sql index e75ffe5926a..8a0c5bbba0c 100644 --- a/PostgreSQL.15/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.15).sql +++ b/PostgreSQL.15/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.15).sql @@ -16,9 +16,7 @@ DROP FUNCTION IF EXISTS "TestTableFunctionSchema"() BeforeExecute -- PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN DROP MATERIALIZED VIEW IF EXISTS "Issue2023" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -396,20 +394,20 @@ CREATE TABLE "AllTypes" "inetDataType" inet NULL, "cidrDataType" cidr NULL, "macaddrDataType" macaddr NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + "macaddr8DataType" macaddr8 NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END + + + "jsonDataType" json NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN + + "jsonbDataType" jsonb NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END + + "xmlDataType" xml NULL, "varBitDataType" varbit NULL, @@ -801,17 +799,13 @@ LANGUAGE plpgsql; BeforeExecute -- PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN CREATE MATERIALIZED VIEW "Issue2023" AS select * from "Person" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN COMMENT ON MATERIALIZED VIEW "Issue2023" IS 'This is the Issue2023 matview'; COMMENT ON COLUMN "Issue2023"."PersonID" IS 'This is the Issue2023.PersonID column'; --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.15 PostgreSQL @@ -936,9 +930,9 @@ AS $function$ $function$ ; --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + DROP TABLE IF EXISTS multitenant_table; @@ -971,10 +965,6 @@ INSERT INTO multitenant_table (TenantId, Id, Name, Description, CreatedAt) VALUE ('33333333-3333-3333-3333-333333333333', 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee', 'Tenant3 Record1', 'Description for Tenant3 Record1', NOW()), ('33333333-3333-3333-3333-333333333333', 'ffffffff-ffff-ffff-ffff-ffffffffffff', 'Tenant3 Record2', 'Description for Tenant3 Record2', NOW()); --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END - BeforeExecute -- PostgreSQL.15 PostgreSQL From c710441a61578e196e2a3ed1ba914b25dc35666c Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:53:10 +0000 Subject: [PATCH 24/31] [Linux / ClickHouse Octonica] baselines --- ...HouseDataTypeTest(ClickHouse.Octonica).sql | 37 +++++++++++++++++++ ...ta.CreateDatabase(ClickHouse.Octonica).sql | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 ClickHouse.Octonica/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Octonica).sql diff --git a/ClickHouse.Octonica/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Octonica).sql b/ClickHouse.Octonica/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Octonica).sql new file mode 100644 index 00000000000..5fb123c01f5 --- /dev/null +++ b/ClickHouse.Octonica/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.ClickHouseDataTypeTest(ClickHouse.Octonica).sql @@ -0,0 +1,37 @@ +BeforeExecute +-- ClickHouse.Octonica ClickHouse + +select name, comment, engine LIKE '%View' from system.tables where is_temporary = 0 and database = database() + +BeforeExecute +-- ClickHouse.Octonica ClickHouse + +select name, primary_key from system.tables where is_temporary = 0 and database = database() and primary_key <> '' + +BeforeExecute +-- ClickHouse.Octonica ClickHouse + + +SELECT + table, + name, + type, + position, + comment, + multiIf(type LIKE '%FixedString%', character_octet_length, NULL), + multiIf(type LIKE '%DateTime64%', datetime_precision, numeric_precision_radix = 10, numeric_precision, NULL), + multiIf(numeric_precision_radix = 10, numeric_scale, NULL), + is_in_primary_key +FROM system.columns +WHERE database = database() and default_kind <> 'ALIAS' + +BeforeExecute +-- ClickHouse.Octonica ClickHouse + +select hostName() + +BeforeExecute +-- ClickHouse.Octonica ClickHouse + +select database() + diff --git a/ClickHouse.Octonica/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Octonica).sql b/ClickHouse.Octonica/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Octonica).sql index 74ce934fe68..e989a6b24f5 100644 --- a/ClickHouse.Octonica/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Octonica).sql +++ b/ClickHouse.Octonica/a_CreateData/a_CreateData.CreateDatabase(ClickHouse.Octonica).sql @@ -185,7 +185,8 @@ CREATE TABLE AllTypes ncharDataType Nullable(FixedString(20)), char20DataType Nullable(FixedString(20)), varcharDataType Nullable(String), - charDataType Nullable(FixedString(1)) + charDataType Nullable(FixedString(1)), + bitDataType Nullable(BIT) ) ENGINE = MergeTree() ORDER BY ID PRIMARY KEY ID; From 48f074758422dee53cfcd1d00211e2ef4252b38d Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:54:11 +0100 Subject: [PATCH 25/31] [Linux / Oracle 23c] baselines --- ...ntAsync(Oracle.23.Managed.LinqService).sql | 33 +++++++++++++++++++ ...Data.CreateDatabase(Oracle.23.Managed).sql | 30 ++++++++--------- 2 files changed, 48 insertions(+), 15 deletions(-) diff --git a/Oracle.23.Managed.LinqService/Tests/Linq/ConcurrencyTests/Tests.Linq.ConcurrencyTests.TestAutoIncrementAsync(Oracle.23.Managed.LinqService).sql b/Oracle.23.Managed.LinqService/Tests/Linq/ConcurrencyTests/Tests.Linq.ConcurrencyTests.TestAutoIncrementAsync(Oracle.23.Managed.LinqService).sql index 2d8c5deac16..0c2eab263e3 100644 --- a/Oracle.23.Managed.LinqService/Tests/Linq/ConcurrencyTests/Tests.Linq.ConcurrencyTests.TestAutoIncrementAsync(Oracle.23.Managed.LinqService).sql +++ b/Oracle.23.Managed.LinqService/Tests/Linq/ConcurrencyTests/Tests.Linq.ConcurrencyTests.TestAutoIncrementAsync(Oracle.23.Managed.LinqService).sql @@ -34,6 +34,39 @@ END; BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 +BEGIN + EXECUTE IMMEDIATE 'DROP TABLE "ConcurrencyAutoIncrement"'; +EXCEPTION + WHEN OTHERS THEN + IF SQLCODE != -942 THEN + RAISE; + END IF; +END; + +BeforeExecute +-- Oracle.23.Managed Oracle.Managed Oracle12 + +BEGIN + EXECUTE IMMEDIATE ' + CREATE TABLE "ConcurrencyAutoIncrement" + ( + "Id" Int NOT NULL, + "Stamp" Int NOT NULL, + "Value" VarChar(255) NULL, + + CONSTRAINT "PK_ConcurrencyAutoIncrement" PRIMARY KEY ("Id") + ) + '; +EXCEPTION + WHEN OTHERS THEN + IF SQLCODE != -955 THEN + RAISE; + END IF; +END; + +BeforeExecute +-- Oracle.23.Managed Oracle.Managed Oracle12 + SELECT t1."Id", t1."Stamp", diff --git a/Oracle.23.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.23.Managed).sql b/Oracle.23.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.23.Managed).sql index c66951e1cef..fe004f4f1b5 100644 --- a/Oracle.23.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.23.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From 420c1bbb48f65a79878c43d6f3268a546870df26 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:54:23 +0000 Subject: [PATCH 26/31] [Linux / PostgreSQL 16] baselines --- ...PostgreSQL(PostgreSQL.16,MiniProfiler).sql | 27 +++---- ...(PostgreSQL.16,MiniProfilerNoMappings).sql | 27 +++---- ...ests.TestPostgreSQL(PostgreSQL.16,Raw).sql | 27 +++---- ...eSQLTests.Issue3352Test(PostgreSQL.16).sql | 27 +++---- ...Tests.PartitionedTables(PostgreSQL.16).sql | 27 +++---- ...Tests.UIntXXMappingTest(PostgreSQL.16).sql | 27 +++---- ...QLTests.DescriptionTest(PostgreSQL.16).sql | 27 +++---- ...(PostgreSQL.16,TestFunctionParameters).sql | 27 +++---- ...Test(PostgreSQL.16,TestScalarFunction).sql | 27 +++---- ...SQL.16,TestSingleOutParameterFunction).sql | 27 +++---- ...rTest(PostgreSQL.16,TestTableFunction).sql | 27 +++---- ...Test(PostgreSQL.16,TestTableFunction1).sql | 27 +++---- ...PostgreSQL.16,TestTableFunctionSchema).sql | 27 +++---- ...maProviderTest(PostgreSQL.16,test_avg).sql | 27 +++---- ...tMaterializedViewSchema(PostgreSQL.16).sql | 27 +++---- ...cludeExcludeCatalogTest(PostgreSQL.16).sql | 81 +++++++++---------- ...ncludeExcludeSchemaTest(PostgreSQL.16).sql | 81 +++++++++---------- ...derTests.PostgreSQLTest(PostgreSQL.16).sql | 27 +++---- ...s.PrimaryForeignKeyTest(PostgreSQL.16).sql | 27 +++---- ...chemaProviderTests.Test(PostgreSQL.16).sql | 27 +++---- ...ests.TestApiImplemented(PostgreSQL.16).sql | 27 +++---- ...ts.TestAttributeMapping(PostgreSQL.16).sql | 27 +++---- ...Tests.TestFluentMapping(PostgreSQL.16).sql | 27 +++---- ...eateData.CreateDatabase(PostgreSQL.16).sql | 36 +++------ 24 files changed, 364 insertions(+), 401 deletions(-) diff --git a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfiler).sql b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfiler).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfiler).sql +++ b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfiler).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfilerNoMappings).sql b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfilerNoMappings).sql index 82836206585..603e1c4ea27 100644 --- a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfilerNoMappings).sql +++ b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,MiniProfilerNoMappings).sql @@ -4304,20 +4304,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,Raw).sql b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,Raw).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,Raw).sql +++ b/PostgreSQL.16/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.16,Raw).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.16).sql b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.16).sql index e79cc684c8b..36317265f7f 100644 --- a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.16).sql b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.16).sql index e79cc684c8b..36317265f7f 100644 --- a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.16).sql index ae1dc5bb07d..9ab8eb969b1 100644 --- a/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.16).sql @@ -161,20 +161,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.16).sql index e79cc684c8b..36317265f7f 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestFunctionParameters).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestFunctionParameters).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestFunctionParameters).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestFunctionParameters).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestScalarFunction).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestScalarFunction).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestScalarFunction).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestScalarFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestSingleOutParameterFunction).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestSingleOutParameterFunction).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestSingleOutParameterFunction).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestSingleOutParameterFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction1).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction1).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction1).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunction1).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunctionSchema).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunctionSchema).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunctionSchema).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,TestTableFunctionSchema).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,test_avg).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,test_avg).sql index ac5638edece..40f1f014f46 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,test_avg).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.16,test_avg).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.16).sql index e79cc684c8b..36317265f7f 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.16).sql index 46ae4a992b8..1c535c1f442 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.16).sql index 925d6780884..51d22a19538 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.16).sql index 46c5c6ca022..2bff9ef10b1 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.16).sql @@ -73,20 +73,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.16).sql index 89e69a40f11..8ae7898fe3f 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.16).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.16).sql index 89e69a40f11..8ae7898fe3f 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.16).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.16).sql b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.16).sql index e79cc684c8b..36317265f7f 100644 --- a/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.16).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.16).sql b/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.16).sql index 993dda820f3..83d7bc12b6d 100644 --- a/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.16).sql @@ -77,20 +77,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.16).sql b/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.16).sql index 0ec461554b4..dd2ccce8a0f 100644 --- a/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.16).sql @@ -75,20 +75,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.16/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.16).sql b/PostgreSQL.16/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.16).sql index 98786915940..0af56930dce 100644 --- a/PostgreSQL.16/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.16).sql +++ b/PostgreSQL.16/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.16).sql @@ -16,9 +16,7 @@ DROP FUNCTION IF EXISTS "TestTableFunctionSchema"() BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN DROP MATERIALIZED VIEW IF EXISTS "Issue2023" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -396,20 +394,20 @@ CREATE TABLE "AllTypes" "inetDataType" inet NULL, "cidrDataType" cidr NULL, "macaddrDataType" macaddr NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + "macaddr8DataType" macaddr8 NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END + + + "jsonDataType" json NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN + + "jsonbDataType" jsonb NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END + + "xmlDataType" xml NULL, "varBitDataType" varbit NULL, @@ -801,17 +799,13 @@ LANGUAGE plpgsql; BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN CREATE MATERIALIZED VIEW "Issue2023" AS select * from "Person" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN COMMENT ON MATERIALIZED VIEW "Issue2023" IS 'This is the Issue2023 matview'; COMMENT ON COLUMN "Issue2023"."PersonID" IS 'This is the Issue2023.PersonID column'; --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL @@ -936,9 +930,9 @@ AS $function$ $function$ ; --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + DROP TABLE IF EXISTS multitenant_table; @@ -971,10 +965,6 @@ INSERT INTO multitenant_table (TenantId, Id, Name, Description, CreatedAt) VALUE ('33333333-3333-3333-3333-333333333333', 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee', 'Tenant3 Record1', 'Description for Tenant3 Record1', NOW()), ('33333333-3333-3333-3333-333333333333', 'ffffffff-ffff-ffff-ffff-ffffffffffff', 'Tenant3 Record2', 'Description for Tenant3 Record2', NOW()); --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END - BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL From 61b8cfe90dc3061339550b840a1330ceac57a8d9 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Mon, 23 Dec 2024 23:54:30 +0000 Subject: [PATCH 27/31] [Linux / PostgreSQL 17] baselines --- ...PostgreSQL(PostgreSQL.17,MiniProfiler).sql | 27 +++---- ...(PostgreSQL.17,MiniProfilerNoMappings).sql | 27 +++---- ...ests.TestPostgreSQL(PostgreSQL.17,Raw).sql | 27 +++---- ...eSQLTests.Issue3352Test(PostgreSQL.17).sql | 27 +++---- ...Tests.PartitionedTables(PostgreSQL.17).sql | 27 +++---- ...Tests.UIntXXMappingTest(PostgreSQL.17).sql | 27 +++---- ...QLTests.DescriptionTest(PostgreSQL.17).sql | 27 +++---- ...(PostgreSQL.17,TestFunctionParameters).sql | 27 +++---- ...Test(PostgreSQL.17,TestScalarFunction).sql | 27 +++---- ...SQL.17,TestSingleOutParameterFunction).sql | 27 +++---- ...rTest(PostgreSQL.17,TestTableFunction).sql | 27 +++---- ...Test(PostgreSQL.17,TestTableFunction1).sql | 27 +++---- ...PostgreSQL.17,TestTableFunctionSchema).sql | 27 +++---- ...maProviderTest(PostgreSQL.17,test_avg).sql | 27 +++---- ...tMaterializedViewSchema(PostgreSQL.17).sql | 27 +++---- ...cludeExcludeCatalogTest(PostgreSQL.17).sql | 81 +++++++++---------- ...ncludeExcludeSchemaTest(PostgreSQL.17).sql | 81 +++++++++---------- ...derTests.PostgreSQLTest(PostgreSQL.17).sql | 27 +++---- ...s.PrimaryForeignKeyTest(PostgreSQL.17).sql | 27 +++---- ...chemaProviderTests.Test(PostgreSQL.17).sql | 27 +++---- ...ests.TestApiImplemented(PostgreSQL.17).sql | 27 +++---- ...ts.TestAttributeMapping(PostgreSQL.17).sql | 27 +++---- ...Tests.TestFluentMapping(PostgreSQL.17).sql | 27 +++---- ...eateData.CreateDatabase(PostgreSQL.17).sql | 36 +++------ 24 files changed, 364 insertions(+), 401 deletions(-) diff --git a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfiler).sql b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfiler).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfiler).sql +++ b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfiler).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfilerNoMappings).sql b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfilerNoMappings).sql index 82836206585..603e1c4ea27 100644 --- a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfilerNoMappings).sql +++ b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,MiniProfilerNoMappings).sql @@ -4304,20 +4304,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,Raw).sql b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,Raw).sql index b9f78354c7b..89caf79953f 100644 --- a/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,Raw).sql +++ b/PostgreSQL.17/Tests/Data/MiniProfilerTests/Tests.Data.MiniProfilerTests.TestPostgreSQL(PostgreSQL.17,Raw).sql @@ -128,20 +128,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.17).sql b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.17).sql index 93c5063e50a..9c3bfe8b5ee 100644 --- a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.Issue3352Test(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.17).sql b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.17).sql index 93c5063e50a..9c3bfe8b5ee 100644 --- a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.PartitionedTables(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.17).sql index ff0269870e5..bfc725ff572 100644 --- a/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/DataProvider/PostgreSQLTests/Tests.DataProvider.PostgreSQLTests.UIntXXMappingTest(PostgreSQL.17).sql @@ -161,20 +161,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.17).sql index 93c5063e50a..9c3bfe8b5ee 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.DescriptionTest(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestFunctionParameters).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestFunctionParameters).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestFunctionParameters).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestFunctionParameters).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestScalarFunction).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestScalarFunction).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestScalarFunction).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestScalarFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestSingleOutParameterFunction).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestSingleOutParameterFunction).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestSingleOutParameterFunction).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestSingleOutParameterFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction1).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction1).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction1).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunction1).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunctionSchema).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunctionSchema).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunctionSchema).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,TestTableFunctionSchema).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,test_avg).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,test_avg).sql index c1a3dc702b0..9a992e00fe3 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,test_avg).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.ProceduresSchemaProviderTest(PostgreSQL.17,test_avg).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.17).sql index 93c5063e50a..9c3bfe8b5ee 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.TestMaterializedViewSchema(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.17).sql index a3a203477b7..b8e1de5d452 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeCatalogTest(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.17).sql index 8f0a5969f50..fa4d1819d22 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.IncludeExcludeSchemaTest(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -326,20 +325,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog', 'public', 'test_schema') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -577,20 +575,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('IncludeExcludeSchemaTest') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.17).sql index 591d9fd508a..484e9530807 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PostgreSQLTest(PostgreSQL.17).sql @@ -73,20 +73,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.17).sql index fba99386672..aa7b4942ece 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.PrimaryForeignKeyTest(PostgreSQL.17).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.17).sql index fba99386672..aa7b4942ece 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.Test(PostgreSQL.17).sql @@ -64,20 +64,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') AND pg_namespace.nspname IN ('public') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.17).sql b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.17).sql index 93c5063e50a..9c3bfe8b5ee 100644 --- a/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/SchemaProvider/SchemaProviderTests/Tests.SchemaProvider.SchemaProviderTests.TestApiImplemented(PostgreSQL.17).sql @@ -55,20 +55,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.17).sql b/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.17).sql index 0d581237be7..37755c0da2c 100644 --- a/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestAttributeMapping(PostgreSQL.17).sql @@ -77,20 +77,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.17).sql b/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.17).sql index 860dbf1b089..e33216027dc 100644 --- a/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.17).sql +++ b/PostgreSQL.17/Tests/UserTests/Issue1305Tests/Tests.UserTests.Issue1305Tests.TestFluentMapping(PostgreSQL.17).sql @@ -75,20 +75,19 @@ BeforeExecute BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL - - SELECT - current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, - pg_constraint.conname as PrimaryKeyName, - attname as ColumnName, - attnum as Ordinal - FROM - pg_attribute - JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) - JOIN pg_class ON pg_class.oid = pg_constraint.conrelid - JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid - WHERE - pg_constraint.contype = 'p' - AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') + SELECT + current_database() || '.' || pg_namespace.nspname || '.' || pg_class.relname as TableID, + pg_constraint.conname as PrimaryKeyName, + attname as ColumnName, + attnum as Ordinal + FROM + pg_attribute + JOIN pg_constraint ON pg_attribute.attrelid = pg_constraint.conrelid AND pg_attribute.attnum = ANY(pg_constraint.conkey) + JOIN pg_class ON pg_class.oid = pg_constraint.conrelid + JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid + WHERE + pg_constraint.contype = 'p' + AND pg_namespace.nspname NOT IN ('information_schema', 'pg_catalog') BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL diff --git a/PostgreSQL.17/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.17).sql b/PostgreSQL.17/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.17).sql index b73da929d69..68aecc97675 100644 --- a/PostgreSQL.17/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.17).sql +++ b/PostgreSQL.17/a_CreateData/a_CreateData.CreateDatabase(PostgreSQL.17).sql @@ -16,9 +16,7 @@ DROP FUNCTION IF EXISTS "TestTableFunctionSchema"() BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN DROP MATERIALIZED VIEW IF EXISTS "Issue2023" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -396,20 +394,20 @@ CREATE TABLE "AllTypes" "inetDataType" inet NULL, "cidrDataType" cidr NULL, "macaddrDataType" macaddr NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + "macaddr8DataType" macaddr8 NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END + + + "jsonDataType" json NULL, --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN + + "jsonbDataType" jsonb NULL, --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END + + "xmlDataType" xml NULL, "varBitDataType" varbit NULL, @@ -801,17 +799,13 @@ LANGUAGE plpgsql; BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN CREATE MATERIALIZED VIEW "Issue2023" AS select * from "Person" --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL --- SKIP PostgreSQL.9.2 BEGIN COMMENT ON MATERIALIZED VIEW "Issue2023" IS 'This is the Issue2023 matview'; COMMENT ON COLUMN "Issue2023"."PersonID" IS 'This is the Issue2023.PersonID column'; --- SKIP PostgreSQL.9.2 END BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL @@ -936,9 +930,9 @@ AS $function$ $function$ ; --- SKIP PostgreSQL.9.2 BEGIN --- SKIP PostgreSQL.9.3 BEGIN --- SKIP PostgreSQL.9.5 BEGIN + + + DROP TABLE IF EXISTS multitenant_table; @@ -971,10 +965,6 @@ INSERT INTO multitenant_table (TenantId, Id, Name, Description, CreatedAt) VALUE ('33333333-3333-3333-3333-333333333333', 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee', 'Tenant3 Record1', 'Description for Tenant3 Record1', NOW()), ('33333333-3333-3333-3333-333333333333', 'ffffffff-ffff-ffff-ffff-ffffffffffff', 'Tenant3 Record2', 'Description for Tenant3 Record2', NOW()); --- SKIP PostgreSQL.9.2 END --- SKIP PostgreSQL.9.3 END --- SKIP PostgreSQL.9.5 END - BeforeExecute -- PostgreSQL.17 PostgreSQL.15 PostgreSQL From c53388f668c7feab372aef2c1dab4ff2d55d3fef Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:56:27 +0100 Subject: [PATCH 28/31] [Linux / Oracle 18c] baselines --- ...teAsync(Oracle.18.Managed.LinqService).sql | 31 +++++++++++++++++++ ...Data.CreateDatabase(Oracle.18.Managed).sql | 30 +++++++++--------- 2 files changed, 46 insertions(+), 15 deletions(-) diff --git a/Oracle.18.Managed.LinqService/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.AnyPredicateAsync(Oracle.18.Managed.LinqService).sql b/Oracle.18.Managed.LinqService/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.AnyPredicateAsync(Oracle.18.Managed.LinqService).sql index ca2657a15a5..1be649ff849 100644 --- a/Oracle.18.Managed.LinqService/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.AnyPredicateAsync(Oracle.18.Managed.LinqService).sql +++ b/Oracle.18.Managed.LinqService/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.AnyPredicateAsync(Oracle.18.Managed.LinqService).sql @@ -29,6 +29,37 @@ EXCEPTION END IF; END; +BeforeExecute +-- Oracle.18.Managed Oracle.Managed Oracle12 + +BEGIN + EXECUTE IMMEDIATE 'DROP TABLE "AsyncDataTable"'; +EXCEPTION + WHEN OTHERS THEN + IF SQLCODE != -942 THEN + RAISE; + END IF; +END; + +BeforeExecute +-- Oracle.18.Managed Oracle.Managed Oracle12 + +BEGIN + EXECUTE IMMEDIATE ' + CREATE TABLE "AsyncDataTable" + ( + "Id" Int NOT NULL, + + CONSTRAINT "PK_AsyncDataTable" PRIMARY KEY ("Id") + ) + '; +EXCEPTION + WHEN OTHERS THEN + IF SQLCODE != -955 THEN + RAISE; + END IF; +END; + BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 DECLARE @Id Int32 diff --git a/Oracle.18.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.18.Managed).sql b/Oracle.18.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.18.Managed).sql index b95ae4c221c..48c914005df 100644 --- a/Oracle.18.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.18.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From 2f2fd812dbf0fd10c419180779879072bf9196a4 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:56:53 +0100 Subject: [PATCH 29/31] [Linux / Oracle 21c] baselines --- ...Data.CreateDatabase(Oracle.21.Managed).sql | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Oracle.21.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.21.Managed).sql b/Oracle.21.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.21.Managed).sql index f57b0d06658..7722d1906a0 100644 --- a/Oracle.21.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.21.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From 9039905a16f832495c22fc4e1ebc21ebee531536 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 01:04:03 +0100 Subject: [PATCH 30/31] [Linux / Oracle 19c] baselines --- ...Data.CreateDatabase(Oracle.19.Managed).sql | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Oracle.19.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.19.Managed).sql b/Oracle.19.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.19.Managed).sql index 1ac75737331..274d62eb7dc 100644 --- a/Oracle.19.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/a_CreateData/a_CreateData.CreateDatabase(Oracle.19.Managed).sql @@ -224,7 +224,7 @@ CREATE TABLE "Doctor" ( "PersonID" NUMBER NOT NULL PRIMARY KEY , "Taxonomy" NVARCHAR2(50) NOT NULL - , CONSTRAINT "Fk_Doctor_Person" FOREIGN KEY ("PersonID") + , CONSTRAINT "FK_Doctor_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE ) @@ -234,12 +234,12 @@ BeforeExecute -- Patient Table Extension CREATE TABLE "Patient" - ( "PersonID" NUMBER NOT NULL PRIMARY KEY - , "Diagnosis" NVARCHAR2(256) NOT NULL +( + "PersonID" NUMBER NOT NULL PRIMARY KEY, + "Diagnosis" NVARCHAR2(256) NOT NULL, - , CONSTRAINT "Fk_Patient_Person" FOREIGN KEY ("PersonID") - REFERENCES "Person" ("PersonID") ON DELETE CASCADE - ) + CONSTRAINT "FK_Patient_Person" FOREIGN KEY ("PersonID") REFERENCES "Person" ("PersonID") ON DELETE CASCADE +) BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 @@ -1309,7 +1309,7 @@ BEGIN at."ntextDataType", at."binaryDataType", - at."bfileDataType", + at."bfileDataType", at."guidDataType", at."xmlDataType" @@ -1482,7 +1482,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 1; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1494,7 +1494,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE1 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 1; END; END TEST_PACKAGE1; @@ -1502,7 +1502,7 @@ END TEST_PACKAGE1; BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 -CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS +CREATE OR REPLACE PACKAGE TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT; FUNCTION TEST_TABLE_FUNCTION(i INT) RETURN tf_table PIPELINED; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT); @@ -1514,7 +1514,7 @@ BeforeExecute CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS FUNCTION TEST_FUNCTION(i INT) RETURN INT IS - BEGIN + BEGIN RETURN i + 2; END; FUNCTION TEST_TABLE_FUNCTION(i IN INT) @@ -1526,7 +1526,7 @@ CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE2 AS RETURN; END; PROCEDURE TEST_PROCEDURE(i INT, o OUT INT) AS - BEGIN + BEGIN o := i + 2; END; END TEST_PACKAGE2; @@ -1536,7 +1536,7 @@ BeforeExecute CREATE OR REPLACE FUNCTION TEST_FUNCTION(i INT) RETURN INT IS -BEGIN +BEGIN RETURN i + 3; END; @@ -1547,7 +1547,7 @@ CREATE OR REPLACE FUNCTION TEST_TABLE_FUNCTION(i IN INT) RETURN tf_table PIPELINED IS BEGIN FOR r IN (SELECT * FROM "Person") LOOP - PIPE ROW(tf_type(i + 3)); + PIPE ROW(tf_type(i + 3)); END LOOP; RETURN; END; @@ -1556,7 +1556,7 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 CREATE OR REPLACE PROCEDURE TEST_PROCEDURE(i INT, o OUT int) AS -BEGIN +BEGIN o := i + 3; END; From eb2ab7a8095473d5cd5d2a33e6cd20de344c1015 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Tue, 24 Dec 2024 00:36:16 +0000 Subject: [PATCH 31/31] [Linux / SQL Server EXTRAS] baselines --- ...CreateDatabase(SqlServer.Contained.MS).sql | 142 +++++------------- ...ta.CreateDatabase(SqlServer.Contained).sql | 142 +++++------------- ...teData.CreateDatabase(SqlServer.SA.MS).sql | 142 +++++------------- ...reateData.CreateDatabase(SqlServer.SA).sql | 142 +++++------------- 4 files changed, 164 insertions(+), 404 deletions(-) diff --git a/SqlServer.Contained.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained.MS).sql index aeddc1b018a..edf80a1ad4e 100644 --- a/SqlServer.Contained.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained BEGIN --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.Contained/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained).sql b/SqlServer.Contained/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained).sql index b086492ef7b..afdb9e659a8 100644 --- a/SqlServer.Contained/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained).sql +++ b/SqlServer.Contained/a_CreateData/a_CreateData.CreateDatabase(SqlServer.Contained).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS BEGIN --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.Contained SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.SA.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA.MS).sql b/SqlServer.SA.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA.MS).sql index 6756a500ac7..80b3cb6340b 100644 --- a/SqlServer.SA.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA.MS).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA BEGIN --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.SA.MS SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute diff --git a/SqlServer.SA/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA).sql b/SqlServer.SA/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA).sql index e05bdfa4ea4..4cf8ef29c82 100644 --- a/SqlServer.SA/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA).sql +++ b/SqlServer.SA/a_CreateData/a_CreateData.CreateDatabase(SqlServer.SA).sql @@ -574,8 +574,8 @@ CREATE TABLE AllTypes xmlDataType xml NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + datetime2DataType datetime2 NULL, datetimeoffsetDataType datetimeoffset NULL, datetimeoffset0DataType datetimeoffset(0) NULL, @@ -588,29 +588,29 @@ CREATE TABLE AllTypes datetimeoffset7DataType datetimeoffset(7) NULL, dateDataType date NULL, timeDataType time NULL --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END + + + + + + + + + + + + + + + + + + + + + + + ) ON [PRIMARY] @@ -657,8 +657,6 @@ SELECT BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('AllTypes2') AND type in (N'U')) BEGIN DROP TABLE AllTypes2 END @@ -698,10 +696,6 @@ SELECT BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- GetParentByID function IF EXISTS (SELECT * FROM sys.objects WHERE type = 'IF' AND name = 'GetParentByID') BEGIN DROP FUNCTION GetParentByID @@ -760,9 +754,6 @@ CREATE TABLE GrandChild (ParentID int, ChildID int, GrandChildID int, _ID INT ID BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.Azure BEGIN --- SKIP SqlServer.Azure.MS BEGIN - EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This is Parent table' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Parent' BeforeExecute @@ -773,10 +764,6 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This ChildID c BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - - CREATE FUNCTION GetParentByID(@id int) RETURNS TABLE AS @@ -819,8 +806,6 @@ BEGIN DROP TABLE LinqDataTypes END BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN CREATE TABLE LinqDataTypes ( _ID int IDENTITY PRIMARY KEY, @@ -840,30 +825,6 @@ CREATE TABLE LinqDataTypes BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN --- SKIP SqlServer.2012 BEGIN --- SKIP SqlServer.2012.MS BEGIN --- SKIP SqlServer.2014 BEGIN --- SKIP SqlServer.2014.MS BEGIN --- SKIP SqlServer.2016 BEGIN --- SKIP SqlServer.2016.MS BEGIN --- SKIP SqlServer.2017 BEGIN --- SKIP SqlServer.2017.MS BEGIN --- SKIP SqlServer.2019 BEGIN --- SKIP SqlServer.2019.MS BEGIN --- SKIP SqlServer.2022 BEGIN --- SKIP SqlServer.2022.MS BEGIN --- SKIP SqlServer.SA END --- SKIP SqlServer.SA.MS END --- SKIP SqlServer.Contained END --- SKIP SqlServer.Contained.MS END --- SKIP SqlServer.Azure END --- SKIP SqlServer.Azure.MS END - IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestIdentity') AND type in (N'U')) BEGIN DROP TABLE TestIdentity END @@ -1024,9 +985,6 @@ SELECT -12345678901234.5678901234567, NULL, BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN - IF EXISTS (SELECT * FROM sys.objects WHERE name = 'SqlTypes') BEGIN DROP TABLE [SqlTypes] END @@ -1055,10 +1013,6 @@ SELECT 8, hierarchyid::Parse('/2/1/1/') BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - - -- merge test tables IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TestMerge1') AND type in (N'U')) BEGIN DROP TABLE TestMerge1 END @@ -1096,20 +1050,20 @@ CREATE TABLE TestMerge1 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1135,20 +1089,20 @@ CREATE TABLE TestMerge2 FieldFloat FLOAT(24) NULL, FieldDouble FLOAT(53) NULL, FieldDateTime DATETIME NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDateTime2 DATETIMEOFFSET(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldBinary VARBINARY(20) NULL, FieldGuid UNIQUEIDENTIFIER NULL, FieldDecimal DECIMAL(24, 10) NULL, --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN + + FieldDate DATE NULL, FieldTime TIME(7) NULL, --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END + + FieldEnumString VARCHAR(20) NULL, FieldEnumNumber INT NULL ) @@ -1313,8 +1267,6 @@ CREATE TABLE TestSchema.SameTableName BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Issue1115') AND type in (N'U')) BEGIN DROP TABLE dbo.Issue1115 END @@ -1362,9 +1314,6 @@ END BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - CREATE PROCEDURE TestSchema.TestProcedure AS BEGIN @@ -1614,10 +1563,6 @@ CREATE TABLE CollatedTable BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2005 BEGIN --- SKIP SqlServer.2005.MS BEGIN --- SKIP SqlServer.2008 BEGIN --- SKIP SqlServer.2008.MS BEGIN IF EXISTS (SELECT name FROM sys.sequences WHERE name = N'TestSequence') DROP SEQUENCE dbo.TestSequence @@ -1631,11 +1576,6 @@ CREATE SEQUENCE dbo.TestSequence BeforeExecute -- SqlServer.SA SqlServer.2019 --- SKIP SqlServer.2008.MS END --- SKIP SqlServer.2008 END --- SKIP SqlServer.2005.MS END --- SKIP SqlServer.2005 END - -- one-to-one (by primary key) relation for scaffold testing BeforeExecute