-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to latest nextras dbal 5.0.0-rc5
- Loading branch information
Showing
72 changed files
with
801 additions
and
801 deletions.
There are no files selected for viewing
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
402 changes: 201 additions & 201 deletions
402
tests/sqls/NextrasTests/Orm/Collection/MemoryManagementTest_testMemoryLeak.sql
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...asTests/Orm/Integration/Collection/CollectionAggregationTest_testAvgOnEmptyCollection.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Test 3', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
COMMIT; | ||
SELECT "authors".* FROM "public"."authors" AS "authors" LEFT JOIN "books" AS "books__AVG" ON ("authors"."id" = "books__AVG"."author_id") GROUP BY "authors"."id" ORDER BY AVG("books__AVG"."price") ASC NULLS FIRST, "authors"."id" ASC; |
2 changes: 1 addition & 1 deletion
2
...Tests/Orm/Integration/Collection/CollectionAggregationTest_testMaxWithEmptyCollection.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Test 3', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
COMMIT; | ||
SELECT "authors".* FROM "public"."authors" AS "authors" LEFT JOIN "books" AS "books__MAX" ON ("authors"."id" = "books__MAX"."author_id") GROUP BY "authors"."id" ORDER BY MAX("books__MAX"."price") ASC NULLS FIRST, "authors"."id" ASC; |
2 changes: 1 addition & 1 deletion
2
...Tests/Orm/Integration/Collection/CollectionAggregationTest_testMinWithEmptyCollection.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Test 3', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
COMMIT; | ||
SELECT "authors".* FROM "public"."authors" AS "authors" LEFT JOIN "books" AS "books__MIN" ON ("authors"."id" = "books__MIN"."author_id") GROUP BY "authors"."id" ORDER BY MIN("books__MIN"."price") ASC NULLS FIRST, "authors"."id" ASC; |
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
6 changes: 3 additions & 3 deletions
6
tests/sqls/NextrasTests/Orm/Integration/Collection/CollectionTest_testJoinDifferentPath.sql
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
SELECT "books".* FROM "books" AS "books" WHERE (("books"."id" = 3)); | ||
START TRANSACTION; | ||
INSERT INTO "eans" ("code", "type") VALUES ('123', 2); | ||
SELECT CURRVAL('"eans_id_seq"'); | ||
SELECT CURRVAL('public.eans_id_seq'); | ||
UPDATE "books" SET "ean_id" = 1 WHERE "id" = 3; | ||
COMMIT; | ||
SELECT "authors".* FROM "public"."authors" AS "authors" WHERE (("authors"."id" = 1)); | ||
SELECT "publishers".* FROM "publishers" AS "publishers" WHERE (("publishers"."publisher_id" = 1)); | ||
SELECT "books".* FROM "books" AS "books" WHERE (("books"."id" = 4)); | ||
START TRANSACTION; | ||
INSERT INTO "eans" ("code", "type") VALUES ('456', 2); | ||
SELECT CURRVAL('"eans_id_seq"'); | ||
SELECT CURRVAL('public.eans_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Book 5', 1, NULL, 4, 2, 1, 'fantasy', '2021-12-31 23:59:59.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); | ||
COMMIT; | ||
SELECT "books".* FROM "books" AS "books" LEFT JOIN "books" AS "nextPart" ON ("books"."next_part" = "nextPart"."id") LEFT JOIN "eans" AS "nextPart_ean" ON ("nextPart"."ean_id" = "nextPart_ean"."id") LEFT JOIN "books" AS "previousPart" ON ("books"."id" = "previousPart"."next_part") LEFT JOIN "eans" AS "previousPart_ean" ON ("previousPart"."ean_id" = "previousPart_ean"."id") WHERE (("nextPart_ean"."code" = '123') AND ("previousPart_ean"."code" = '456')); |
4 changes: 2 additions & 2 deletions
4
...xtrasTests/Orm/Integration/Collection/CollectionWhereTest_testFilterByPropertyWrapper.sql
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
12 changes: 6 additions & 6 deletions
12
tests/sqls/NextrasTests/Orm/Integration/Entity/EntityCloningTest_testCloningManyHasMany.sql
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
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
2 changes: 1 addition & 1 deletion
2
...ls/NextrasTests/Orm/Integration/Entity/EntityCompositePKTest_testCompositePKDateTime2.sql
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
6 changes: 3 additions & 3 deletions
6
...s/NextrasTests/Orm/Integration/Entity/EntityEnumPropTest_testAddEntityWithDefaultEnum.sql
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Writer 1', '2021-03-21 08:23:00.000000'::timestamp, 'http://example.com/1', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "publishers" ("name") VALUES ('Nextras publisher A'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
SELECT CURRVAL('public.publishers_publisher_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Book 6', 3, NULL, NULL, NULL, 4, 'fantasy', '2021-12-14 21:10:02.000000'::timestamp, NULL, 150, 'CZK', NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); | ||
COMMIT; | ||
SELECT "books".* FROM "books" AS "books" WHERE (("books"."title" = 'Book 6')); |
6 changes: 3 additions & 3 deletions
6
tests/sqls/NextrasTests/Orm/Integration/Entity/EntityEnumPropTest_testAddEntityWithEnum.sql
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Writer 1', '2021-03-21 08:23:00.000000'::timestamp, 'http://example.com/1', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "publishers" ("name") VALUES ('Nextras publisher A'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
SELECT CURRVAL('public.publishers_publisher_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Book 5', 3, NULL, NULL, NULL, 4, 'fantasy', '2021-12-14 21:10:02.000000'::timestamp, NULL, 150, 'CZK', NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); | ||
UPDATE "books" SET "genre" = 'romance' WHERE "id" = 5; | ||
COMMIT; | ||
SELECT "books".* FROM "books" AS "books" WHERE (("books"."title" = 'Book 5')); |
6 changes: 3 additions & 3 deletions
6
...s/NextrasTests/Orm/Integration/Entity/EntityEnumPropTest_testAddEntityWithUnknownEnum.sql
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Writer 1', '2021-03-21 08:23:00.000000'::timestamp, 'http://example.com/1', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "publishers" ("name") VALUES ('Nextras publisher A'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
SELECT CURRVAL('public.publishers_publisher_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Book 7', 3, NULL, NULL, NULL, 4, 'fantasy', '2021-12-14 21:10:02.000000'::timestamp, NULL, 150, 'CZK', NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); |
2 changes: 1 addition & 1 deletion
2
tests/sqls/NextrasTests/Orm/Integration/Entity/NewEntityTest_testInsert.sql
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Jon Snow', '2021-03-21 08:23:00.000000'::timestamp, 'http://nextras.cz', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
COMMIT; |
6 changes: 3 additions & 3 deletions
6
tests/sqls/NextrasTests/Orm/Integration/Mapper/ConventionsTest_testTimezoneDetection.sql
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('A', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "publishers" ("name") VALUES ('P'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
SELECT CURRVAL('public.publishers_publisher_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('B', 3, NULL, NULL, NULL, 4, 'fantasy', '2015-09-09 10:10:10.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); | ||
COMMIT; | ||
SELECT "books".* FROM "books" AS "books" WHERE (("books"."id" = 5)); |
2 changes: 1 addition & 1 deletion
2
tests/sqls/NextrasTests/Orm/Integration/Mapper/MapperDateTimeSimpleTest_testToCollection.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Random Author', '2018-01-09 00:00:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
COMMIT; | ||
SELECT "authors".* FROM "public"."authors" AS "authors" WHERE (("authors"."id" = 3)); |
8 changes: 4 additions & 4 deletions
8
tests/sqls/NextrasTests/Orm/Integration/Relationships/EntityRelationshipsTest_testBasics.sql
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
8 changes: 4 additions & 4 deletions
8
...trasTests/Orm/Integration/Relationships/RelationshipCyclicTest_testCycleManualPersist.sql
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
START TRANSACTION; | ||
INSERT INTO "photo_albums" ("title", "preview_id") VALUES ('album 1', NULL); | ||
SELECT CURRVAL('"photo_albums_id_seq"'); | ||
SELECT CURRVAL('public.photo_albums_id_seq'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 1', 1); | ||
SELECT CURRVAL('"photos_id_seq"'); | ||
SELECT CURRVAL('public.photos_id_seq'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 2', 1); | ||
SELECT CURRVAL('"photos_id_seq"'); | ||
SELECT CURRVAL('public.photos_id_seq'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 3', 1); | ||
SELECT CURRVAL('"photos_id_seq"'); | ||
SELECT CURRVAL('public.photos_id_seq'); | ||
UPDATE "photo_albums" SET "preview_id" = 2 WHERE "id" = 1; |
8 changes: 4 additions & 4 deletions
8
...s/sqls/NextrasTests/Orm/Integration/Relationships/RelationshipCyclicTest_testNotCycle.sql
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Dave Lister', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Arnold Judas Rimmer', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', 3); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
SELECT CURRVAL('public.authors_id_seq'); | ||
INSERT INTO "publishers" ("name") VALUES ('Jupiter Mining Corporation'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
SELECT CURRVAL('public.publishers_publisher_id_seq'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "genre", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Better Than Life', 4, 3, NULL, NULL, 4, 'fantasy', '2021-12-31 23:59:59.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
SELECT CURRVAL('public.books_id_seq'); |
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
2 changes: 1 addition & 1 deletion
2
...rm/Integration/Relationships/RelationshipManyHasManyTest_testJoinAcrossDifferentPaths.sql
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SELECT "books".* FROM "books" AS "books" LEFT JOIN "books_x_tags" AS "books_x_tags_any" ON ("books"."id" = "books_x_tags_any"."book_id") LEFT JOIN "tags" AS "tags_any" ON (("books_x_tags_any"."tag_id" = "tags_any"."id") AND "tags_any"."name" = 'Tag 1') LEFT JOIN "books" AS "nextPart" ON ("books"."next_part" = "nextPart"."id") LEFT JOIN "books_x_tags" AS "nextPart_books_x_tags_any" ON ("nextPart"."id" = "nextPart_books_x_tags_any"."book_id") LEFT JOIN "tags" AS "nextPart_tags_any" ON (("nextPart_books_x_tags_any"."tag_id" = "nextPart_tags_any"."id") AND "nextPart_tags_any"."name" = 'Tag 3') GROUP BY "books"."id" HAVING ((COUNT("tags_any"."id") > 0) OR (COUNT("nextPart_tags_any"."id") > 0)) ORDER BY "books"."id" ASC; | ||
START TRANSACTION; | ||
INSERT INTO "tags" ("name", "is_global") VALUES ('Tag 5', 'y'); | ||
SELECT CURRVAL('"tags_id_seq"'); | ||
SELECT CURRVAL('public.tags_id_seq'); | ||
INSERT INTO "books_x_tags" ("book_id", "tag_id") VALUES (4, 4); | ||
COMMIT; | ||
SELECT "books".* FROM "books" AS "books" LEFT JOIN "books_x_tags" AS "books_x_tags_any" ON ("books"."id" = "books_x_tags_any"."book_id") LEFT JOIN "tags" AS "tags_any" ON ("books_x_tags_any"."tag_id" = "tags_any"."id") LEFT JOIN "books" AS "nextPart" ON ("books"."next_part" = "nextPart"."id") LEFT JOIN "books_x_tags" AS "nextPart_books_x_tags_any" ON ("nextPart"."id" = "nextPart_books_x_tags_any"."book_id") LEFT JOIN "tags" AS "nextPart_tags_any" ON ("nextPart_books_x_tags_any"."tag_id" = "nextPart_tags_any"."id") WHERE (("tags_any"."name" = 'Tag 5') AND ("nextPart_tags_any"."name" = 'Tag 3')) GROUP BY "books"."id" ORDER BY "books"."id" ASC; |
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
4 changes: 2 additions & 2 deletions
4
...ests/Orm/Integration/Relationships/RelationshipManyHasManyTest_testRepeatedPersisting.sql
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
Oops, something went wrong.