Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Nov 29, 2024
1 parent ea47470 commit 9ab757c
Show file tree
Hide file tree
Showing 2,210 changed files with 100,962 additions and 1,872 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ FROM
INNER JOIN [Issue4364_Interaction] [i] ON ([b].[Id] = [i].[ThingId]))
INNER JOIN [Issue4364_Person] [p] ON ([i].[PersonId] = [p].[Id])
WHERE
[b].[Type] IN (101, 102)
[b].[Type] IN (102, 101)
ORDER BY
[b].[Id]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ FROM
INNER JOIN [Issue4364_Interaction] [i] ON ([b].[Id] = [i].[ThingId]))
INNER JOIN [Issue4364_Person] [p] ON ([i].[PersonId] = [p].[Id])
WHERE
[b].[Type] IN (101, 102)
[b].[Type] IN (102, 101)
ORDER BY
[b].[Id]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ SELECT
[e].[Code],
[e].[Id],
[e].[Name],
[e].[Age],
[e].[IsMale]
[e].[IsMale],
[e].[Age]
FROM
[Base] [e]
WHERE
IIF([e].[Code] = 'BaseChild' OR [e].[Code] = 'Child' OR [e].[Code] = 'Child2', IIF([e].[Id] <> 0, True, False), IIF([e].[Id] <> 0, True, False)) = True
IIF([e].[Code] = 'Child2' OR [e].[Code] = 'Child' OR [e].[Code] = 'BaseChild', IIF([e].[Id] <> 0, True, False), IIF([e].[Id] <> 0, True, False)) = True
ORDER BY
[e].[Id]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ SELECT
[e].[Code],
[e].[Id],
[e].[Name],
[e].[Age],
[e].[IsMale]
[e].[IsMale],
[e].[Age]
FROM
[Base] [e]
WHERE
[e].[Code] = 'BaseChild' OR
[e].[Code] = 'Child' OR
[e].[Code] = 'Child2' OR
[e].[Code] = 'Child' OR
[e].[Code] = 'BaseChild' OR
[e].[Id] <> 0
ORDER BY
[e].[Id]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [Issue4460Table]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

CREATE TABLE [Issue4460Table]
(
[Id] Int NOT NULL,
[Code] NVarChar(255) NULL,
[Name] NVarChar(255) NULL,
[Surname] NVarChar(255) NULL
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 1
DECLARE @Code NVarChar(10) -- String
SET @Code = 'GrandChild'
DECLARE @Name NVarChar(3) -- String
SET @Name = 'Tom'
DECLARE @Surname NVarChar(5) -- String
SET @Surname = 'Black'

INSERT INTO [Issue4460Table]
(
[Id],
[Code],
[Name],
[Surname]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[Code],
[t1].[Id],
[t1].[Name],
[t1].[Surname]
FROM
[Issue4460Table] [t1]
WHERE
[t1].[Code] = 'GrandChild'

BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [Issue4460Table]

Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [Issue4460Table]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

CREATE TABLE [Issue4460Table]
(
[Id] Int NOT NULL,
[Code] NVarChar(255) NULL,
[Name] NVarChar(255) NULL,
[Surname] NVarChar(255) NULL
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 1
DECLARE @Code NVarChar(10) -- String
SET @Code = 'GrandChild'
DECLARE @Name NVarChar(3) -- String
SET @Name = 'Tom'
DECLARE @Surname NVarChar(5) -- String
SET @Surname = 'Black'

INSERT INTO [Issue4460Table]
(
[Id],
[Code],
[Name],
[Surname]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[Code],
[t1].[Id],
[t1].[Name],
[t1].[Surname]
FROM
[Issue4460Table] [t1]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [Issue4460Table]

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SELECT
FROM
[Parent] [p]
WHERE
[p].[Value1] = 1 OR [p].[Value1] = 2
[p].[Value1] = 2 OR [p].[Value1] = 1

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SELECT
FROM
[Parent] [p]
WHERE
[p].[Value1] = 1 OR [p].[Value1] = 2
[p].[Value1] = 2 OR [p].[Value1] = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [InheritanceFilter]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

CREATE TABLE [InheritanceFilter]
(
[Id] Int NOT NULL,
[Code] Int NOT NULL,
[Child1Field] Int NULL,
[Child2Field] Int NULL,
[Grandchild11Field] Int NULL,
[Grandchild12Field] Int NULL,
[Grandchild21Field] Int NULL,
[Grandchild22Field] Int NULL,

CONSTRAINT [PK_InheritanceFilter] PRIMARY KEY CLUSTERED ([Id])
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 1
DECLARE @Code Int -- Int32
SET @Code = 1
DECLARE @Child1Field Int -- Int32
SET @Child1Field = 11

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child1Field]
)
VALUES
(
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 2
DECLARE @Code Int -- Int32
SET @Code = 2
DECLARE @Child2Field Int -- Int32
SET @Child2Field = 12

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child2Field]
)
VALUES
(
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 3
DECLARE @Code Int -- Int32
SET @Code = 11
DECLARE @Child1Field Int -- Int32
SET @Child1Field = 23
DECLARE @Grandchild11Field Int -- Int32
SET @Grandchild11Field = 13

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child1Field],
[Grandchild11Field]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 4
DECLARE @Code Int -- Int32
SET @Code = 12
DECLARE @Child1Field Int -- Int32
SET @Child1Field = 24
DECLARE @Grandchild12Field Int -- Int32
SET @Grandchild12Field = 14

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child1Field],
[Grandchild12Field]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 5
DECLARE @Code Int -- Int32
SET @Code = 21
DECLARE @Child2Field Int -- Int32
SET @Child2Field = 25
DECLARE @Grandchild21Field Int -- Int32
SET @Grandchild21Field = 15

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child2Field],
[Grandchild21Field]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Id Int -- Int32
SET @Id = 6
DECLARE @Code Int -- Int32
SET @Code = 22
DECLARE @Child2Field Int -- Int32
SET @Child2Field = 26
DECLARE @Grandchild22Field Int -- Int32
SET @Grandchild22Field = 16

INSERT INTO [InheritanceFilter]
(
[Id],
[Code],
[Child2Field],
[Grandchild22Field]
)
VALUES
(
?,
?,
?,
?
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[Code],
[t1].[Id],
[t1].[Child1Field],
[t1].[Child2Field],
[t1].[Grandchild11Field],
[t1].[Grandchild12Field],
[t1].[Grandchild21Field],
[t1].[Grandchild22Field]
FROM
[InheritanceFilter] [t1]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [InheritanceFilter]

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SELECT
FROM
[Parent] [x]
WHERE
[x].[Value1] = 1 OR [x].[Value1] = 2
[x].[Value1] = 2 OR [x].[Value1] = 1

Loading

0 comments on commit 9ab757c

Please sign in to comment.