Skip to content

Commit

Permalink
Updated EFCore Snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 28, 2023
1 parent 96a74ac commit 804cc9e
Show file tree
Hide file tree
Showing 17 changed files with 252 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

12and13 SQL:
---------------
.param set @__p_0 '[12,13]'

SELECT "d"."Id", "d"."BarDecimal", "d"."BarDouble", "d"."BarFloat", "d"."BarInt", "d"."BarLong", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IN (12, 13)
WHERE "d"."BarShort" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

13and14 Result:
Expand All @@ -39,9 +44,14 @@ WHERE "d"."BarShort" IN (12, 13)

13and14 SQL:
---------------
.param set @__p_0 '[13,14]'

SELECT "d"."Id", "d"."BarDecimal", "d"."BarDouble", "d"."BarFloat", "d"."BarInt", "d"."BarLong", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IN (13, 14)
WHERE "d"."BarShort" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

nullAnd14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@

12and13 SQL:
---------------
.param set @__p_0 '[12,13]'

SELECT "d"."Id", "d"."BarDecimal", "d"."BarDouble", "d"."BarFloat", "d"."BarInt", "d"."BarLong", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" NOT IN (12, 13)
WHERE "d"."BarShort" NOT IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

13and14 Result:
Expand All @@ -33,9 +38,14 @@ WHERE "d"."BarShort" NOT IN (12, 13)

13and14 SQL:
---------------
.param set @__p_0 '[13,14]'

SELECT "d"."Id", "d"."BarDecimal", "d"."BarDouble", "d"."BarFloat", "d"."BarInt", "d"."BarLong", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" NOT IN (13, 14)
WHERE "d"."BarShort" NOT IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

nullAnd14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

12and13 SQL:
---------------
.param set @__p_0 '[12,13]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IN (12, 13)
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------

13and14 Result:
Expand All @@ -39,9 +44,14 @@ WHERE "d"."BarShort" IN (12, 13)

13and14 SQL:
---------------
.param set @__p_0 '[13,14]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IN (13, 14)
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------

13andNull Result:
Expand All @@ -62,7 +72,12 @@ WHERE "d"."BarShort" IN (13, 14)

13andNull SQL:
---------------
.param set @__p_0 '[13,null]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IS NULL OR "d"."BarShort" = 13
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

12and13 SQL:
---------------
.param set @__p_0 '[12,13]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" NOT IN (12, 13) OR "d"."BarShort" IS NULL
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------

13and14 Result:
Expand All @@ -39,9 +44,14 @@ WHERE "d"."BarShort" NOT IN (12, 13) OR "d"."BarShort" IS NULL

13and14 SQL:
---------------
.param set @__p_0 '[13,14]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" NOT IN (13, 14) OR "d"."BarShort" IS NULL
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------

13andNull Result:
Expand All @@ -62,7 +72,12 @@ WHERE "d"."BarShort" NOT IN (13, 14) OR "d"."BarShort" IS NULL

13andNull SQL:
---------------
.param set @__p_0 '[13,null]'

SELECT "d"."Id", "d"."BarShort"
FROM "Data" AS "d"
WHERE "d"."BarShort" IS NOT NULL AND "d"."BarShort" <> 13
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarShort" OR ("p"."value" IS NULL AND "d"."BarShort" IS NULL))
---------------
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" IN (1, 0)
WHERE "d"."BarEnum" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

FOO Result:
Expand All @@ -36,9 +41,14 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" = 0
WHERE "d"."BarEnum" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

nullAndFoo Result:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" NOT IN (1, 0)
WHERE "d"."BarEnum" NOT IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

FOO Result:
Expand All @@ -42,9 +47,14 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" <> 0
WHERE "d"."BarEnum" NOT IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

nullAndFoo Result:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" IN (1, 0)
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------

FOO Result:
Expand All @@ -36,9 +41,14 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" = 0
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------

nullAndFoo Result:
Expand All @@ -59,7 +69,12 @@ nullAndFoo Result:

nullAndFoo SQL:
---------------
.param set @__p_0 '[null,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" IS NULL OR "d"."BarEnum" = 0
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" NOT IN (1, 0) OR "d"."BarEnum" IS NULL
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------

FOO Result:
Expand All @@ -48,9 +53,14 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" <> 0 OR "d"."BarEnum" IS NULL
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------

nullAndFoo Result:
Expand All @@ -74,7 +84,12 @@ nullAndFoo Result:

nullAndFoo SQL:
---------------
.param set @__p_0 '[null,0]'

SELECT "d"."Id", "d"."BarEnum"
FROM "Data" AS "d"
WHERE "d"."BarEnum" IS NOT NULL AND "d"."BarEnum" <> 0
WHERE NOT EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "d"."BarEnum" OR ("p"."value" IS NULL AND "d"."BarEnum" IS NULL))
---------------
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."FooId"
FROM "Data" AS "d"
INNER JOIN "Foo" AS "f" ON "d"."FooId" = "f"."Id"
WHERE "f"."BarEnum" IN (1, 0)
WHERE "f"."BarEnum" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

FOO Result:
Expand All @@ -48,10 +53,15 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."FooId"
FROM "Data" AS "d"
INNER JOIN "Foo" AS "f" ON "d"."FooId" = "f"."Id"
WHERE "f"."BarEnum" = 0
WHERE "f"."BarEnum" IN (
SELECT "p"."value"
FROM json_each(@__p_0) AS "p"
)
---------------

nullAndFoo Result:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ BarAndFoo Result:

BarAndFoo SQL:
---------------
.param set @__p_0 '[1,0]'

SELECT "d"."Id", "d"."FooId"
FROM "Data" AS "d"
LEFT JOIN "FooNullable" AS "f" ON "d"."FooId" = "f"."Id"
WHERE "f"."BarEnum" IN (1, 0)
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "f"."BarEnum" OR ("p"."value" IS NULL AND "f"."BarEnum" IS NULL))
---------------

FOO Result:
Expand All @@ -48,10 +53,15 @@ FOO Result:

FOO SQL:
---------------
.param set @__p_0 '[0]'

SELECT "d"."Id", "d"."FooId"
FROM "Data" AS "d"
LEFT JOIN "FooNullable" AS "f" ON "d"."FooId" = "f"."Id"
WHERE "f"."BarEnum" = 0
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "f"."BarEnum" OR ("p"."value" IS NULL AND "f"."BarEnum" IS NULL))
---------------

nullAndFoo Result:
Expand All @@ -71,8 +81,13 @@ nullAndFoo Result:

nullAndFoo SQL:
---------------
.param set @__p_0 '[null,0]'

SELECT "d"."Id", "d"."FooId"
FROM "Data" AS "d"
LEFT JOIN "FooNullable" AS "f" ON "d"."FooId" = "f"."Id"
WHERE "f"."BarEnum" IS NULL OR "f"."BarEnum" = 0
WHERE EXISTS (
SELECT 1
FROM json_each(@__p_0) AS "p"
WHERE "p"."value" = "f"."BarEnum" OR ("p"."value" IS NULL AND "f"."BarEnum" IS NULL))
---------------
Loading

0 comments on commit 804cc9e

Please sign in to comment.