-
-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b48cc11
commit 4f2e4ef
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Include_On_Array_Results | ||
|
||
```sql | ||
-- @__brandIds_0={ '1' } (DbType = Object) | ||
SELECT p."BrandId", p."Name", p."Price" | ||
FROM "Products" AS p | ||
WHERE p."BrandId" = ANY (@__brandIds_0) | ||
ORDER BY p."BrandId" | ||
``` |
9 changes: 9 additions & 0 deletions
9
.../Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Include_On_List_Results | ||
|
||
```sql | ||
-- @__brandIds_0={ '1' } (DbType = Object) | ||
SELECT p."BrandId", p."Name", p."Price" | ||
FROM "Products" AS p | ||
WHERE p."BrandId" = ANY (@__brandIds_0) | ||
ORDER BY p."BrandId" | ||
``` |
22 changes: 22 additions & 0 deletions
22
.../Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Page_Results.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Include_On_Page_Results | ||
|
||
```sql | ||
-- @__brandIds_0={ '1' } (DbType = Object) | ||
SELECT p1."BrandId", p3."BrandId", p3."Name", p3."Price", p3."Id" | ||
FROM ( | ||
SELECT p."BrandId" | ||
FROM "Products" AS p | ||
WHERE p."BrandId" = ANY (@__brandIds_0) | ||
GROUP BY p."BrandId" | ||
) AS p1 | ||
LEFT JOIN ( | ||
SELECT p2."BrandId", p2."Name", p2."Price", p2."Id" | ||
FROM ( | ||
SELECT p0."BrandId", p0."Name", p0."Price", p0."Id", ROW_NUMBER() OVER(PARTITION BY p0."BrandId" ORDER BY p0."Id") AS row | ||
FROM "Products" AS p0 | ||
WHERE p0."BrandId" = ANY (@__brandIds_0) | ||
) AS p2 | ||
WHERE p2.row <= 6 | ||
) AS p3 ON p1."BrandId" = p3."BrandId" | ||
ORDER BY p1."BrandId", p3."BrandId", p3."Id" | ||
``` |