From 1ecd1b253382526c5d005efc82566ce2d95041b0 Mon Sep 17 00:00:00 2001 From: Jan Skrasek Date: Mon, 28 Oct 2024 12:09:17 +0100 Subject: [PATCH] fix min bound for nextras dbal --- composer.json | 2 +- ...ationshipOneHasOneTest_testFilterAutomaticallyById.sql | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/sqls/NextrasTests/Orm/Integration/Relationships/RelationshipOneHasOneTest_testFilterAutomaticallyById.sql diff --git a/composer.json b/composer.json index 53276fbe..742bb2ae 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "ext-ctype": "*", "nette/caching": "~3.2 || ~3.1.3", "nette/utils": "~3.0 || ~4.0", - "nextras/dbal": "~5.0.0@rc", + "nextras/dbal": "^v5.0.0-rc5", "phpstan/phpdoc-parser": "2.0.x-dev" }, "require-dev": { diff --git a/tests/sqls/NextrasTests/Orm/Integration/Relationships/RelationshipOneHasOneTest_testFilterAutomaticallyById.sql b/tests/sqls/NextrasTests/Orm/Integration/Relationships/RelationshipOneHasOneTest_testFilterAutomaticallyById.sql new file mode 100644 index 00000000..ff67cc86 --- /dev/null +++ b/tests/sqls/NextrasTests/Orm/Integration/Relationships/RelationshipOneHasOneTest_testFilterAutomaticallyById.sql @@ -0,0 +1,8 @@ +SELECT "books".* FROM "books" AS "books" WHERE (("books"."id" = 1)); +START TRANSACTION; +INSERT INTO "eans" ("code", "type") VALUES ('1234', 2); +SELECT CURRVAL('"eans_id_seq"'); +UPDATE "books" SET "ean_id" = 1 WHERE "id" = 1; +COMMIT; +SELECT "books".* FROM "books" AS "books" WHERE (("books"."ean_id" = 1)); +SELECT "eans".* FROM "eans" AS "eans" WHERE (("eans"."book" = 1));