-
-
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.
fix recored queries for latest Dbal update
- Loading branch information
Showing
65 changed files
with
585 additions
and
585 deletions.
There are no files selected for viewing
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('"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('"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('"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('"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('"eans_id_seq"'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Book 5', 1, NULL, 4, 2, 1, '2021-12-31 23:59:59.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('books_id_seq'); | ||
SELECT CURRVAL('"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
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('"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('"authors_id_seq"'); | ||
INSERT INTO "publishers" ("name") VALUES ('P'); | ||
SELECT CURRVAL('publishers_publisher_id_seq'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('B', 3, NULL, NULL, NULL, 4, '2015-09-09 10:10:10.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('books_id_seq'); | ||
SELECT CURRVAL('"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('"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('"photo_albums_id_seq"'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 1', 1); | ||
SELECT CURRVAL('photos_id_seq'); | ||
SELECT CURRVAL('"photos_id_seq"'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 2', 1); | ||
SELECT CURRVAL('photos_id_seq'); | ||
SELECT CURRVAL('"photos_id_seq"'); | ||
INSERT INTO "photos" ("title", "album_id") VALUES ('photo 3', 1); | ||
SELECT CURRVAL('photos_id_seq'); | ||
SELECT CURRVAL('"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('"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('"authors_id_seq"'); | ||
INSERT INTO "publishers" ("name") VALUES ('Jupiter Mining Corporation'); | ||
SELECT CURRVAL('publishers_publisher_id_seq'); | ||
SELECT CURRVAL('"publishers_publisher_id_seq"'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('Better Than Life', 4, 3, NULL, NULL, 4, '2021-12-31 23:59:59.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('books_id_seq'); | ||
SELECT CURRVAL('"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" ON ("books"."id" = "books_x_tags"."book_id") LEFT JOIN "tags" AS "tags_any" ON (("books_x_tags"."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" ON ("nextPart"."id" = "nextPart_books_x_tags"."book_id") LEFT JOIN "tags" AS "nextPart_tags_any" ON (("nextPart_books_x_tags"."tag_id" = "nextPart_tags_any"."id") AND "nextPart_tags_any"."name" = 'Tag 3') GROUP BY "books"."id", "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('"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" ON ("books"."id" = "books_x_tags"."book_id") LEFT JOIN "tags" AS "tags_any" ON (("books_x_tags"."tag_id" = "tags_any"."id") AND "tags_any"."name" = 'Tag 5') LEFT JOIN "books" AS "nextPart" ON ("books"."next_part" = "nextPart"."id") LEFT JOIN "books_x_tags" AS "nextPart_books_x_tags" ON ("nextPart"."id" = "nextPart_books_x_tags"."book_id") LEFT JOIN "tags" AS "nextPart_tags_any" ON (("nextPart_books_x_tags"."tag_id" = "nextPart_tags_any"."id") AND "nextPart_tags_any"."name" = 'Tag 3') GROUP BY "books"."id", "books"."id" HAVING ((COUNT("tags_any"."id") > 0) AND (COUNT("nextPart_tags_any"."id") > 0)) 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
4 changes: 2 additions & 2 deletions
4
...sTests/Orm/Integration/Relationships/RelationshipManyHasOneTest_testPersistenceHasOne.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 "publishers".* FROM "publishers" AS "publishers" WHERE (("publishers"."publisher_id" = 1)); | ||
START TRANSACTION; | ||
INSERT INTO "public"."authors" ("name", "born", "web", "favorite_author_id") VALUES ('Jon Snow', '2021-03-21 08:23:00.000000'::timestamp, 'http://www.example.com', NULL); | ||
SELECT CURRVAL('authors_id_seq'); | ||
SELECT CURRVAL('"authors_id_seq"'); | ||
INSERT INTO "books" ("title", "author_id", "translator_id", "next_part", "ean_id", "publisher_id", "published_at", "printed_at", "price", "price_currency", "orig_price_cents", "orig_price_currency") VALUES ('A new book', 3, NULL, NULL, NULL, 1, '2021-12-31 23:59:59.000000'::timestamp, NULL, NULL, NULL, NULL, NULL); | ||
SELECT CURRVAL('books_id_seq'); | ||
SELECT CURRVAL('"books_id_seq"'); | ||
COMMIT; |
4 changes: 2 additions & 2 deletions
4
...s/Orm/Integration/Relationships/RelationshipOneHasManyRemoveTest_testRemoveCollection.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
4 changes: 2 additions & 2 deletions
4
...egration/Relationships/RelationshipOneHasManyRemoveTest_testRemoveCollectionAndParent.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
2 changes: 1 addition & 1 deletion
2
...ion/Relationships/RelationshipOneHasManyRemoveTest_testRemoveNoCascadeEmptyCollection.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.