diff --git a/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client.LinqService).sql b/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client.LinqService).sql deleted file mode 100644 index eb96d54b198..00000000000 --- a/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client.LinqService).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client.LinqService).sql b/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client.LinqService).sql deleted file mode 100644 index 28f296ecf96..00000000000 --- a/ClickHouse.Client.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client.LinqService).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client).sql b/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client).sql deleted file mode 100644 index eb96d54b198..00000000000 --- a/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Client).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client).sql b/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client).sql deleted file mode 100644 index 28f296ecf96..00000000000 --- a/ClickHouse.Client/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Client).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.Client/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Client).sql b/ClickHouse.Client/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Client).sql deleted file mode 100644 index 73260543c77..00000000000 --- a/ClickHouse.Client/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Client).sql +++ /dev/null @@ -1,521 +0,0 @@ -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS MainItem - -BeforeExecute --- ClickHouse.Client ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem -( - Id Int32, - Value Nullable(String) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Client ClickHouse - -INSERT INTO MainItem -( - Id, - Value -) -VALUES -(toInt32(0),'Main_0'), -(toInt32(1),'Main_1'), -(toInt32(2),'Main_2'), -(toInt32(3),'Main_3'), -(toInt32(4),'Main_4'), -(toInt32(5),'Main_5'), -(toInt32(6),'Main_6'), -(toInt32(7),'Main_7'), -(toInt32(8),'Main_8'), -(toInt32(9),'Main_9') - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.Client ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem2 -( - Id Int32, - Value Nullable(String), - MainItemId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Client ClickHouse - -INSERT INTO MainItem2 -( - Id, - Value, - MainItemId -) -VALUES -(toInt32(0),'Main2_0',toInt32(0)), -(toInt32(2),'Main2_1',toInt32(1)), -(toInt32(4),'Main2_2',toInt32(2)), -(toInt32(6),'Main2_3',toInt32(3)), -(toInt32(8),'Main2_4',toInt32(4)) - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.Client ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Client ClickHouse - -INSERT INTO SubItem1 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub1_0',toInt32(0)), -(toInt32(10),'Sub1_1',NULL), -(toInt32(20),'Sub1_2',toInt32(1)), -(toInt32(30),'Sub1_3',NULL), -(toInt32(40),'Sub1_4',toInt32(2)), -(toInt32(50),'Sub1_5',NULL), -(toInt32(60),'Sub1_6',toInt32(3)), -(toInt32(70),'Sub1_7',NULL), -(toInt32(80),'Sub1_8',toInt32(4)), -(toInt32(90),'Sub1_9',NULL), -(toInt32(100),'Sub1_10',toInt32(5)), -(toInt32(110),'Sub1_11',NULL), -(toInt32(120),'Sub1_12',toInt32(6)), -(toInt32(130),'Sub1_13',NULL), -(toInt32(140),'Sub1_14',toInt32(7)), -(toInt32(150),'Sub1_15',NULL), -(toInt32(160),'Sub1_16',toInt32(8)), -(toInt32(170),'Sub1_17',NULL), -(toInt32(180),'Sub1_18',toInt32(9)), -(toInt32(190),'Sub1_19',NULL) - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.Client ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1_Sub -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Client ClickHouse - -INSERT INTO SubItem1_Sub -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'SubSub1_0',toInt32(0)), -(toInt32(100),'SubSub1_1',toInt32(3)), -(toInt32(200),'SubSub1_2',toInt32(6)), -(toInt32(300),'SubSub1_3',toInt32(10)), -(toInt32(400),'SubSub1_4',toInt32(13)), -(toInt32(500),'SubSub1_5',toInt32(16)), -(toInt32(600),'SubSub1_6',toInt32(20)), -(toInt32(700),'SubSub1_7',toInt32(23)), -(toInt32(800),'SubSub1_8',toInt32(26)), -(toInt32(900),'SubSub1_9',toInt32(30)), -(toInt32(1000),'SubSub1_10',toInt32(33)), -(toInt32(1100),'SubSub1_11',toInt32(36)), -(toInt32(1200),'SubSub1_12',toInt32(40)), -(toInt32(1300),'SubSub1_13',toInt32(43)), -(toInt32(1400),'SubSub1_14',toInt32(46)), -(toInt32(1500),'SubSub1_15',toInt32(50)), -(toInt32(1600),'SubSub1_16',toInt32(53)), -(toInt32(1700),'SubSub1_17',toInt32(56)), -(toInt32(1800),'SubSub1_18',toInt32(60)), -(toInt32(1900),'SubSub1_19',toInt32(63)) - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.Client ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem2 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Client ClickHouse - -INSERT INTO SubItem2 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub2_0',toInt32(0)), -(toInt32(10),'Sub2_1',NULL), -(toInt32(20),'Sub2_2',toInt32(1)), -(toInt32(30),'Sub2_3',NULL), -(toInt32(40),'Sub2_4',toInt32(2)), -(toInt32(50),'Sub2_5',NULL), -(toInt32(60),'Sub2_6',toInt32(3)), -(toInt32(70),'Sub2_7',NULL), -(toInt32(80),'Sub2_8',toInt32(4)), -(toInt32(90),'Sub2_9',NULL), -(toInt32(100),'Sub2_10',toInt32(5)), -(toInt32(110),'Sub2_11',NULL), -(toInt32(120),'Sub2_12',toInt32(6)), -(toInt32(130),'Sub2_13',NULL), -(toInt32(140),'Sub2_14',toInt32(7)), -(toInt32(150),'Sub2_15',NULL), -(toInt32(160),'Sub2_16',toInt32(8)), -(toInt32(170),'Sub2_17',NULL), -(toInt32(180),'Sub2_18',toInt32(9)), -(toInt32(190),'Sub2_19',NULL) - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - e_1.Id, - e_1.Value, - e_1.ParentId, - e_2.Id, - e_2.Value, - e_2.ParentId -FROM - ( - SELECT DISTINCT - e.Id as Id, - lw_MainItem.Id as Id_1, - e.Value as Value_1, - e.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - ) lw_SubItem1 - INNER JOIN SubItem1_Sub e_1 ON lw_SubItem1.Id = e_1.ParentId AND (e_1.Value = e_1.Value OR e_1.Value IS NULL AND e_1.Value IS NULL) - LEFT JOIN SubItem1 e_2 ON e_1.ParentId = e_2.Id AND (e_2.Value = e_2.Value OR e_2.Value IS NULL AND e_2.Value IS NULL) - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - LEFT JOIN MainItem a_Parent ON e.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - LEFT JOIN MainItem a_Parent ON detail.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.Client ClickHouse - -DROP TABLE IF EXISTS MainItem - diff --git a/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql.LinqService).sql b/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql.LinqService).sql deleted file mode 100644 index 5254c599d51..00000000000 --- a/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql.LinqService).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql.LinqService).sql b/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql.LinqService).sql deleted file mode 100644 index b7a1b741e22..00000000000 --- a/ClickHouse.MySql.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql.LinqService).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql.LinqService).sql b/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql.LinqService).sql deleted file mode 100644 index c8ffae70028..00000000000 --- a/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql.LinqService).sql +++ /dev/null @@ -1,24 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p_1.ID, - p_1.FirstName_1 -FROM - ( - SELECT - concat('123', p.FirstName, '012345') as FirstName, - p.PersonID as ID, - p.FirstName as FirstName_1 - FROM - Person p - WHERE - p.PersonID = toInt32(1) - ) p_1 -WHERE - CASE - WHEN positionUTF8(p_1.FirstName, '123', toUInt32(toInt32(6))) = toInt32(0) - THEN toInt32(-1) - ELSE CHAR_LENGTH(p_1.FirstName) - positionUTF8(reverseUTF8(Substring(p_1.FirstName, toInt32(6), CHAR_LENGTH(p_1.FirstName) - toInt32(5))), '321') - toInt32(2) - END = toInt32(8) - diff --git a/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql.LinqService).sql b/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql.LinqService).sql deleted file mode 100644 index a16c296e97e..00000000000 --- a/ClickHouse.MySql.LinqService/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql.LinqService).sql +++ /dev/null @@ -1,24 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p_1.ID, - p_1.FirstName_1 -FROM - ( - SELECT - concat('123', p.FirstName, '0123451234') as FirstName, - p.PersonID as ID, - p.FirstName as FirstName_1 - FROM - Person p - WHERE - p.PersonID = toInt32(1) - ) p_1 -WHERE - CASE - WHEN positionUTF8(leftUTF8(p_1.FirstName, toInt32(11)), '123', toUInt32(toInt32(6))) = toInt32(0) - THEN toInt32(-1) - ELSE toInt32(9) - positionUTF8(reverseUTF8(Substring(p_1.FirstName, toInt32(6), toInt32(6))), '321') - END = toInt32(8) - diff --git a/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql).sql deleted file mode 100644 index 5254c599d51..00000000000 --- a/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.MySql).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql).sql deleted file mode 100644 index b7a1b741e22..00000000000 --- a/ClickHouse.MySql/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.MySql).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.MySql/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.MySql).sql deleted file mode 100644 index 6faca4370dc..00000000000 --- a/ClickHouse.MySql/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.MySql).sql +++ /dev/null @@ -1,521 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS MainItem - -BeforeExecute --- ClickHouse.MySql ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem -( - Id Int32, - Value Nullable(String) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.MySql ClickHouse - -INSERT INTO MainItem -( - Id, - Value -) -VALUES -(toInt32(0),'Main_0'), -(toInt32(1),'Main_1'), -(toInt32(2),'Main_2'), -(toInt32(3),'Main_3'), -(toInt32(4),'Main_4'), -(toInt32(5),'Main_5'), -(toInt32(6),'Main_6'), -(toInt32(7),'Main_7'), -(toInt32(8),'Main_8'), -(toInt32(9),'Main_9') - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem2 -( - Id Int32, - Value Nullable(String), - MainItemId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.MySql ClickHouse - -INSERT INTO MainItem2 -( - Id, - Value, - MainItemId -) -VALUES -(toInt32(0),'Main2_0',toInt32(0)), -(toInt32(2),'Main2_1',toInt32(1)), -(toInt32(4),'Main2_2',toInt32(2)), -(toInt32(6),'Main2_3',toInt32(3)), -(toInt32(8),'Main2_4',toInt32(4)) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.MySql ClickHouse - -INSERT INTO SubItem1 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub1_0',toInt32(0)), -(toInt32(10),'Sub1_1',NULL), -(toInt32(20),'Sub1_2',toInt32(1)), -(toInt32(30),'Sub1_3',NULL), -(toInt32(40),'Sub1_4',toInt32(2)), -(toInt32(50),'Sub1_5',NULL), -(toInt32(60),'Sub1_6',toInt32(3)), -(toInt32(70),'Sub1_7',NULL), -(toInt32(80),'Sub1_8',toInt32(4)), -(toInt32(90),'Sub1_9',NULL), -(toInt32(100),'Sub1_10',toInt32(5)), -(toInt32(110),'Sub1_11',NULL), -(toInt32(120),'Sub1_12',toInt32(6)), -(toInt32(130),'Sub1_13',NULL), -(toInt32(140),'Sub1_14',toInt32(7)), -(toInt32(150),'Sub1_15',NULL), -(toInt32(160),'Sub1_16',toInt32(8)), -(toInt32(170),'Sub1_17',NULL), -(toInt32(180),'Sub1_18',toInt32(9)), -(toInt32(190),'Sub1_19',NULL) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.MySql ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1_Sub -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.MySql ClickHouse - -INSERT INTO SubItem1_Sub -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'SubSub1_0',toInt32(0)), -(toInt32(100),'SubSub1_1',toInt32(3)), -(toInt32(200),'SubSub1_2',toInt32(6)), -(toInt32(300),'SubSub1_3',toInt32(10)), -(toInt32(400),'SubSub1_4',toInt32(13)), -(toInt32(500),'SubSub1_5',toInt32(16)), -(toInt32(600),'SubSub1_6',toInt32(20)), -(toInt32(700),'SubSub1_7',toInt32(23)), -(toInt32(800),'SubSub1_8',toInt32(26)), -(toInt32(900),'SubSub1_9',toInt32(30)), -(toInt32(1000),'SubSub1_10',toInt32(33)), -(toInt32(1100),'SubSub1_11',toInt32(36)), -(toInt32(1200),'SubSub1_12',toInt32(40)), -(toInt32(1300),'SubSub1_13',toInt32(43)), -(toInt32(1400),'SubSub1_14',toInt32(46)), -(toInt32(1500),'SubSub1_15',toInt32(50)), -(toInt32(1600),'SubSub1_16',toInt32(53)), -(toInt32(1700),'SubSub1_17',toInt32(56)), -(toInt32(1800),'SubSub1_18',toInt32(60)), -(toInt32(1900),'SubSub1_19',toInt32(63)) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem2 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.MySql ClickHouse - -INSERT INTO SubItem2 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub2_0',toInt32(0)), -(toInt32(10),'Sub2_1',NULL), -(toInt32(20),'Sub2_2',toInt32(1)), -(toInt32(30),'Sub2_3',NULL), -(toInt32(40),'Sub2_4',toInt32(2)), -(toInt32(50),'Sub2_5',NULL), -(toInt32(60),'Sub2_6',toInt32(3)), -(toInt32(70),'Sub2_7',NULL), -(toInt32(80),'Sub2_8',toInt32(4)), -(toInt32(90),'Sub2_9',NULL), -(toInt32(100),'Sub2_10',toInt32(5)), -(toInt32(110),'Sub2_11',NULL), -(toInt32(120),'Sub2_12',toInt32(6)), -(toInt32(130),'Sub2_13',NULL), -(toInt32(140),'Sub2_14',toInt32(7)), -(toInt32(150),'Sub2_15',NULL), -(toInt32(160),'Sub2_16',toInt32(8)), -(toInt32(170),'Sub2_17',NULL), -(toInt32(180),'Sub2_18',toInt32(9)), -(toInt32(190),'Sub2_19',NULL) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - e_1.Id, - e_1.Value, - e_1.ParentId, - e_2.Id, - e_2.Value, - e_2.ParentId -FROM - ( - SELECT DISTINCT - e.Id as Id, - lw_MainItem.Id as Id_1, - e.Value as Value_1, - e.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - ) lw_SubItem1 - INNER JOIN SubItem1_Sub e_1 ON lw_SubItem1.Id = e_1.ParentId AND (e_1.Value = e_1.Value OR e_1.Value IS NULL AND e_1.Value IS NULL) - LEFT JOIN SubItem1 e_2 ON e_1.ParentId = e_2.Id AND (e_2.Value = e_2.Value OR e_2.Value IS NULL AND e_2.Value IS NULL) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - LEFT JOIN MainItem a_Parent ON e.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - LEFT JOIN MainItem a_Parent ON detail.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.MySql ClickHouse - -DROP TABLE IF EXISTS MainItem - diff --git a/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql).sql deleted file mode 100644 index c8ffae70028..00000000000 --- a/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf2(ClickHouse.MySql).sql +++ /dev/null @@ -1,24 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p_1.ID, - p_1.FirstName_1 -FROM - ( - SELECT - concat('123', p.FirstName, '012345') as FirstName, - p.PersonID as ID, - p.FirstName as FirstName_1 - FROM - Person p - WHERE - p.PersonID = toInt32(1) - ) p_1 -WHERE - CASE - WHEN positionUTF8(p_1.FirstName, '123', toUInt32(toInt32(6))) = toInt32(0) - THEN toInt32(-1) - ELSE CHAR_LENGTH(p_1.FirstName) - positionUTF8(reverseUTF8(Substring(p_1.FirstName, toInt32(6), CHAR_LENGTH(p_1.FirstName) - toInt32(5))), '321') - toInt32(2) - END = toInt32(8) - diff --git a/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql).sql b/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql).sql deleted file mode 100644 index a16c296e97e..00000000000 --- a/ClickHouse.MySql/Tests/Linq/StringFunctionTests/Tests.Linq.StringFunctionTests.LastIndexOf3(ClickHouse.MySql).sql +++ /dev/null @@ -1,24 +0,0 @@ -BeforeExecute --- ClickHouse.MySql ClickHouse - -SELECT - p_1.ID, - p_1.FirstName_1 -FROM - ( - SELECT - concat('123', p.FirstName, '0123451234') as FirstName, - p.PersonID as ID, - p.FirstName as FirstName_1 - FROM - Person p - WHERE - p.PersonID = toInt32(1) - ) p_1 -WHERE - CASE - WHEN positionUTF8(leftUTF8(p_1.FirstName, toInt32(11)), '123', toUInt32(toInt32(6))) = toInt32(0) - THEN toInt32(-1) - ELSE toInt32(9) - positionUTF8(reverseUTF8(Substring(p_1.FirstName, toInt32(6), toInt32(6))), '321') - END = toInt32(8) - diff --git a/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica.LinqService).sql b/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica.LinqService).sql deleted file mode 100644 index 3bb34ecf783..00000000000 --- a/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica.LinqService).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica.LinqService).sql b/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica.LinqService).sql deleted file mode 100644 index db884775ce4..00000000000 --- a/ClickHouse.Octonica.LinqService/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica.LinqService).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica).sql b/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica).sql deleted file mode 100644 index 3bb34ecf783..00000000000 --- a/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.ClickHouseUnionTest(ClickHouse.Octonica).sql +++ /dev/null @@ -1,28 +0,0 @@ -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p FINAL -UNION DISTINCT -SELECT - t2.ID, - t2.TS -FROM - ( - SELECT - p_1.ID as ID, - p_1.TS as TS - FROM - ReplacingMergeTreeTable p_1, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - ) t2 -SETTINGS convert_query_to_cnf=false - diff --git a/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica).sql b/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica).sql deleted file mode 100644 index db884775ce4..00000000000 --- a/ClickHouse.Octonica/Tests/Extensions/ClickHouseTests/Tests.Extensions.ClickHouseTests.FinalSubQueryHintTest(ClickHouse.Octonica).sql +++ /dev/null @@ -1,15 +0,0 @@ -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - p.ID, - p.TS -FROM - ReplacingMergeTreeTable p, - ( - SELECT - * - FROM - ReplacingMergeTreeTable t1 - ) c_1 FINAL - diff --git a/ClickHouse.Octonica/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Octonica).sql b/ClickHouse.Octonica/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Octonica).sql deleted file mode 100644 index 9d043d19c6c..00000000000 --- a/ClickHouse.Octonica/Tests/Linq/LoadWithTests/Tests.Linq.LoadWithTests.LoadWithAndFilter(ClickHouse.Octonica).sql +++ /dev/null @@ -1,521 +0,0 @@ -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS MainItem - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem -( - Id Int32, - Value Nullable(String) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -INSERT INTO MainItem -( - Id, - Value -) -VALUES -(toInt32(0),'Main_0'), -(toInt32(1),'Main_1'), -(toInt32(2),'Main_2'), -(toInt32(3),'Main_3'), -(toInt32(4),'Main_4'), -(toInt32(5),'Main_5'), -(toInt32(6),'Main_6'), -(toInt32(7),'Main_7'), -(toInt32(8),'Main_8'), -(toInt32(9),'Main_9') - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -CREATE TABLE IF NOT EXISTS MainItem2 -( - Id Int32, - Value Nullable(String), - MainItemId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -INSERT INTO MainItem2 -( - Id, - Value, - MainItemId -) -VALUES -(toInt32(0),'Main2_0',toInt32(0)), -(toInt32(2),'Main2_1',toInt32(1)), -(toInt32(4),'Main2_2',toInt32(2)), -(toInt32(6),'Main2_3',toInt32(3)), -(toInt32(8),'Main2_4',toInt32(4)) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -INSERT INTO SubItem1 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub1_0',toInt32(0)), -(toInt32(10),'Sub1_1',NULL), -(toInt32(20),'Sub1_2',toInt32(1)), -(toInt32(30),'Sub1_3',NULL), -(toInt32(40),'Sub1_4',toInt32(2)), -(toInt32(50),'Sub1_5',NULL), -(toInt32(60),'Sub1_6',toInt32(3)), -(toInt32(70),'Sub1_7',NULL), -(toInt32(80),'Sub1_8',toInt32(4)), -(toInt32(90),'Sub1_9',NULL), -(toInt32(100),'Sub1_10',toInt32(5)), -(toInt32(110),'Sub1_11',NULL), -(toInt32(120),'Sub1_12',toInt32(6)), -(toInt32(130),'Sub1_13',NULL), -(toInt32(140),'Sub1_14',toInt32(7)), -(toInt32(150),'Sub1_15',NULL), -(toInt32(160),'Sub1_16',toInt32(8)), -(toInt32(170),'Sub1_17',NULL), -(toInt32(180),'Sub1_18',toInt32(9)), -(toInt32(190),'Sub1_19',NULL) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem1_Sub -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -INSERT INTO SubItem1_Sub -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'SubSub1_0',toInt32(0)), -(toInt32(100),'SubSub1_1',toInt32(3)), -(toInt32(200),'SubSub1_2',toInt32(6)), -(toInt32(300),'SubSub1_3',toInt32(10)), -(toInt32(400),'SubSub1_4',toInt32(13)), -(toInt32(500),'SubSub1_5',toInt32(16)), -(toInt32(600),'SubSub1_6',toInt32(20)), -(toInt32(700),'SubSub1_7',toInt32(23)), -(toInt32(800),'SubSub1_8',toInt32(26)), -(toInt32(900),'SubSub1_9',toInt32(30)), -(toInt32(1000),'SubSub1_10',toInt32(33)), -(toInt32(1100),'SubSub1_11',toInt32(36)), -(toInt32(1200),'SubSub1_12',toInt32(40)), -(toInt32(1300),'SubSub1_13',toInt32(43)), -(toInt32(1400),'SubSub1_14',toInt32(46)), -(toInt32(1500),'SubSub1_15',toInt32(50)), -(toInt32(1600),'SubSub1_16',toInt32(53)), -(toInt32(1700),'SubSub1_17',toInt32(56)), -(toInt32(1800),'SubSub1_18',toInt32(60)), -(toInt32(1900),'SubSub1_19',toInt32(63)) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -CREATE TABLE IF NOT EXISTS SubItem2 -( - Id Int32, - Value Nullable(String), - ParentId Nullable(Int32) -) -ENGINE = Memory() - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -INSERT INTO SubItem2 -( - Id, - Value, - ParentId -) -VALUES -(toInt32(0),'Sub2_0',toInt32(0)), -(toInt32(10),'Sub2_1',NULL), -(toInt32(20),'Sub2_2',toInt32(1)), -(toInt32(30),'Sub2_3',NULL), -(toInt32(40),'Sub2_4',toInt32(2)), -(toInt32(50),'Sub2_5',NULL), -(toInt32(60),'Sub2_6',toInt32(3)), -(toInt32(70),'Sub2_7',NULL), -(toInt32(80),'Sub2_8',toInt32(4)), -(toInt32(90),'Sub2_9',NULL), -(toInt32(100),'Sub2_10',toInt32(5)), -(toInt32(110),'Sub2_11',NULL), -(toInt32(120),'Sub2_12',toInt32(6)), -(toInt32(130),'Sub2_13',NULL), -(toInt32(140),'Sub2_14',toInt32(7)), -(toInt32(150),'Sub2_15',NULL), -(toInt32(160),'Sub2_16',toInt32(8)), -(toInt32(170),'Sub2_17',NULL), -(toInt32(180),'Sub2_18',toInt32(9)), -(toInt32(190),'Sub2_19',NULL) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - e_1.Id, - e_1.Value, - e_1.ParentId, - e_2.Id, - e_2.Value, - e_2.ParentId -FROM - ( - SELECT DISTINCT - e.Id as Id, - lw_MainItem.Id as Id_1, - e.Value as Value_1, - e.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - ) lw_SubItem1 - INNER JOIN SubItem1_Sub e_1 ON lw_SubItem1.Id = e_1.ParentId AND (e_1.Value = e_1.Value OR e_1.Value IS NULL AND e_1.Value IS NULL) - LEFT JOIN SubItem1 e_2 ON e_1.ParentId = e_2.Id AND (e_2.Value = e_2.Value OR e_2.Value IS NULL AND e_2.Value IS NULL) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - e.Id, - e.Value, - e.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 e ON lw_MainItem.Id = e.ParentId AND (e.Value = e.Value OR e.Value IS NULL AND e.Value IS NULL) - LEFT JOIN MainItem a_Parent ON e.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_SubItem1.Id_1, - lw_SubItem1.Id, - lw_SubItem1.Value_1, - lw_SubItem1.ParentId, - detail_1.Id, - detail_1.Value, - detail_1.ParentId, - a_ParentSubItem.Id, - a_ParentSubItem.Value, - a_ParentSubItem.ParentId -FROM - ( - SELECT DISTINCT - detail.Id as Id, - lw_MainItem.Id as Id_1, - detail.Value as Value_1, - detail.ParentId as ParentId - FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - ) lw_SubItem1 - INNER JOIN SubItem1_Sub detail_1 ON lw_SubItem1.Id = detail_1.ParentId - LEFT JOIN SubItem1 a_ParentSubItem ON detail_1.ParentId = a_ParentSubItem.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem1 detail ON lw_MainItem.Id = detail.ParentId - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - lw_MainItem.Id, - detail.Id, - detail.Value, - detail.ParentId, - a_Parent.Id, - a_Parent.Value -FROM - ( - SELECT DISTINCT - m_1.Id as Id - FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id - WHERE - m_1.Id > toInt32(1) - ) lw_MainItem - INNER JOIN SubItem2 detail ON lw_MainItem.Id = detail.ParentId - LEFT JOIN MainItem a_Parent ON detail.ParentId = a_Parent.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -SELECT - m_1.Id, - m_1.Value -FROM - MainItem m_1 - INNER JOIN MainItem2 m2 ON m2.Id = m_1.Id - INNER JOIN MainItem2 mm ON mm.Id = m2.Id -WHERE - m_1.Id > toInt32(1) -ORDER BY - m_1.Id - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem2 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem1_Sub - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS SubItem1 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS MainItem2 - -BeforeExecute --- ClickHouse.Octonica ClickHouse - -DROP TABLE IF EXISTS MainItem - diff --git a/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsert(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsert(Oracle.23.Managed).sql index 6048dac5455..db5d2e96ed1 100644 --- a/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsert(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsert(Oracle.23.Managed).sql @@ -39,7 +39,7 @@ FETCH NEXT :take ROWS ONLY BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 DECLARE @id Int32 -SET @id = 1099 +SET @id = 1111 DELETE FROM SEQUENCETEST t1 diff --git a/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsertWithIdentity(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsertWithIdentity(Oracle.23.Managed).sql index 543f3a5558c..dd1e47feb35 100644 --- a/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsertWithIdentity(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.SequenceInsertWithIdentity(Oracle.23.Managed).sql @@ -43,7 +43,7 @@ FETCH NEXT :take ROWS ONLY BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 DECLARE @id1 Int32 -SET @id1 = 1100 +SET @id1 = 1112 DELETE FROM SEQUENCETEST t1 diff --git a/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,False).sql b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,False).sql new file mode 100644 index 00000000000..2e85b36ef35 --- /dev/null +++ b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,True).sql b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,True).sql new file mode 100644 index 00000000000..2e85b36ef35 --- /dev/null +++ b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPM,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,False).sql b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,False).sql new file mode 100644 index 00000000000..2e85b36ef35 --- /dev/null +++ b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,True).sql b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,True).sql new file mode 100644 index 00000000000..2e85b36ef35 --- /dev/null +++ b/SQLite.Classic.MPM/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPM,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,False).sql b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,False).sql new file mode 100644 index 00000000000..4e21bd5c63f --- /dev/null +++ b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,True).sql b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,True).sql new file mode 100644 index 00000000000..4e21bd5c63f --- /dev/null +++ b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic.MPU,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,False).sql b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,False).sql new file mode 100644 index 00000000000..4e21bd5c63f --- /dev/null +++ b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,True).sql b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,True).sql new file mode 100644 index 00000000000..4e21bd5c63f --- /dev/null +++ b/SQLite.Classic.MPU/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic.MPU,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,False).sql b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,False).sql new file mode 100644 index 00000000000..55e324c21e8 --- /dev/null +++ b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,True).sql b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,True).sql new file mode 100644 index 00000000000..55e324c21e8 --- /dev/null +++ b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.Classic,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,False).sql b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,False).sql new file mode 100644 index 00000000000..55e324c21e8 --- /dev/null +++ b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,True).sql b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,True).sql new file mode 100644 index 00000000000..55e324c21e8 --- /dev/null +++ b/SQLite.Classic/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.Classic,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.Classic SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,False).sql b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,False).sql new file mode 100644 index 00000000000..2d0c4759502 --- /dev/null +++ b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,True).sql b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,True).sql new file mode 100644 index 00000000000..2d0c4759502 --- /dev/null +++ b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_AutoConnection(SQLite.MS,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,False).sql b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,False).sql new file mode 100644 index 00000000000..2d0c4759502 --- /dev/null +++ b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,False).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync diff --git a/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,True).sql b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,True).sql new file mode 100644 index 00000000000..2d0c4759502 --- /dev/null +++ b/SQLite.MS/Tests/Data/InterceptorsTests/Tests.Data.InterceptorsTests.Test_Connection_Release_EagerLoad_PersistentConnection(SQLite.MS,True).sql @@ -0,0 +1,204 @@ +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t1].[ParentID] + FROM + [Parent] [t1] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransaction(Serializable) +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransaction +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[FirstName], + [t1].[PersonID], + [t1].[LastName], + [t1].[MiddleName], + [t1].[Gender], + [a_Patient].[PersonID], + [a_Patient].[Diagnosis] +FROM + [Person] [t1] + LEFT JOIN [Patient] [a_Patient] ON [t1].[PersonID] = [a_Patient].[PersonID] +LIMIT @take + +BeforeExecute +BeginTransactionAsync(Serializable) +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [lw_Parent].[ParentID], + [detail].[ParentID], + [detail].[ChildID] +FROM + ( + SELECT DISTINCT + [t2].[ParentID] + FROM + ( + SELECT + [t1].[ParentID] + FROM + [Parent] [t1] + LIMIT @take + ) [t2] + ) [lw_Parent] + INNER JOIN [Child] [detail] ON [lw_Parent].[ParentID] = [detail].[ParentID] + +BeforeExecute +-- SQLite.MS SQLite (asynchronously) +DECLARE @take -- Int32 +SET @take = 1 + +SELECT + [t1].[ParentID], + [t1].[Value1] +FROM + [Parent] [t1] +LIMIT @take + +BeforeExecute +DisposeTransactionAsync