Skip to content

Commit

Permalink
reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Nov 24, 2024
1 parent b29c9c3 commit 69f6442
Show file tree
Hide file tree
Showing 23,061 changed files with 200,548 additions and 98,715 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @id -- Int32
SET @id = 3
DECLARE @id1 -- Int32
SET @id1 = 3

SELECT TOP 1
[t1].[ChildID]
FROM
[GrandChild] [t1]
WHERE
EXISTS(
SELECT
*
FROM
(([Parent] [li]
INNER JOIN [Child] [a_ManyToMany] ON ([li].[ParentID] = [a_ManyToMany].[ParentID]))
INNER JOIN [GrandChild] [a_Child] ON ([a_ManyToMany].[ChildID] = [a_Child].[ChildID]))
LEFT JOIN [Parent] [a_Parent] ON ([a_Child].[ParentID] = [a_Parent].[ParentID])
WHERE
[li].[ParentID] = ? AND [a_Parent].[ParentID] IS NOT NULL AND
[a_Parent].[ParentID] = ?
)
ORDER BY
[t1].[ChildID]

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ID NVarChar(4) -- String
SET @ID = 'John'
DECLARE @p NVarChar(4) -- String
SET @p = 'John'

SELECT TOP 1
[p].[FirstName]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
IIF(COUNT(*) > 0, True, False)
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
IIF(COUNT(*) > 0, True, False)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
IIF(COUNT(*) > 0, True, False)
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
IIF(COUNT(*) > 0, True, False)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT TOP 1
[x].[ParentID],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT TOP 1
[c_1].[ParentID],
Expand All @@ -13,8 +13,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 2
DECLARE @p -- Int32
SET @p = 2

SELECT TOP 2
[c_1].[ParentID],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT TOP 1
[c_1].[ParentID],
Expand All @@ -13,8 +13,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 2
DECLARE @p -- Int32
SET @p = 2

SELECT TOP 2
[c_1].[ParentID],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @Value1 -- Int32
SET @Value1 = 1
DECLARE @p -- Int32
SET @p = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
[p].[ParentID],
Expand All @@ -15,8 +15,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 2
DECLARE @p -- Int32
SET @p = 2

SELECT
[p].[ParentID],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
COUNT(*)
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
COUNT(*)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
COUNT(*)
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
COUNT(*)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT TOP 1
[c_1].[ParentID],
Expand All @@ -13,8 +13,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 2
DECLARE @p -- Int32
SET @p = 2

SELECT TOP 1
[c_1].[ParentID],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
MAX([c_1].[ParentID])
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
MAX([c_1].[ParentID])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 1
DECLARE @p -- Int32
SET @p = 1

SELECT
MAX([c_1].[ParentID])
Expand All @@ -12,8 +12,8 @@ WHERE

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = -1
DECLARE @p -- Int32
SET @p = -1

SELECT
MAX([c_1].[ParentID])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @ParentID -- Int32
SET @ParentID = 2
DECLARE @p -- Int32
SET @p = 2

SELECT
[c_1].[ChildID]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SELECT
FROM
(
SELECT
COUNT(IIF([g_1].[ChildID] > 20, 1, NULL)) as [COUNT_1],
MAX([g_1].[ChildID]) as [MAX_1],
COUNT(IIF([g_1].[ChildID] > 20, 1, NULL)) as [COUNT_1],
COUNT(IIF([g_1].[ChildID] > 10, 1, NULL)) as [COUNT_2]
FROM
[Child] [g_1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SELECT
FROM
(
SELECT
COUNT(IIF([g_1].[ChildID] > 20, 1, NULL)) as [COUNT_1],
MAX([g_1].[ChildID]) as [MAX_1],
COUNT(IIF([g_1].[ChildID] > 20, 1, NULL)) as [COUNT_1],
COUNT(IIF([g_1].[ChildID] > 10, 1, NULL)) as [COUNT_2]
FROM
[Child] [g_1]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Value1 -- Int32
SET @Value1 = 3

SELECT DISTINCT
IIF([p].[Value1] IS NULL, [p].[ParentID] MOD 2, [p].[Value1]),
CVar(?)
FROM
[Parent] [p]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Value1 -- Int32
SET @Value1 = 3

SELECT DISTINCT
IIF([p].[Value1] IS NULL, [p].[ParentID] MOD 2, [p].[Value1]),
CVar(?)
FROM
[Parent] [p]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Value1 -- Int32
SET @Value1 = 3

SELECT DISTINCT
IIF([p].[Value1] IS NULL, [p].[ParentID] MOD 2, [p].[Value1]),
CVar(?)
FROM
[Parent] [p]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @Value1 -- Int32
SET @Value1 = 3

SELECT DISTINCT
IIF([p].[Value1] IS NULL, [p].[ParentID] MOD 2, [p].[Value1]),
CVar(?)
FROM
[Parent] [p]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

Loading

0 comments on commit 69f6442

Please sign in to comment.