From 81cae39a4f17fbc856171c7b7065319b3bbb2574 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 21 Feb 2026 15:06:23 +0700 Subject: [PATCH 1/6] Install version 2.* --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2ec0568..c71e1965 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Driver supports MySQL 5.7 or higher, and MariaDB 10.4 or higher. The package could be installed with [Composer](https://getcomposer.org): ```shell -composer require yiisoft/db-mysql +composer require yiisoft/db-mysql:2.* ``` > [!IMPORTANT] From d1edc7191ec8ce7c45b4479c966b2b47aa9ec9ca Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 21 Feb 2026 15:21:35 +0700 Subject: [PATCH 2/6] Add `ext-pdo_mysql` to required in composer.json --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index acb5c46a..513faf7a 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,7 @@ "php": "8.1 - 8.5", "ext-ctype": "*", "ext-pdo": "*", + "ext-pdo_mysql": "*", "psr/log": "^2.0|^3.0", "yiisoft/db": "^2.0" }, From 793529034d0d23a85a85438dd08c0ddf795da938 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 21 Feb 2026 15:35:52 +0700 Subject: [PATCH 3/6] Update installation doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c71e1965..d2ec0568 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Driver supports MySQL 5.7 or higher, and MariaDB 10.4 or higher. The package could be installed with [Composer](https://getcomposer.org): ```shell -composer require yiisoft/db-mysql:2.* +composer require yiisoft/db-mysql ``` > [!IMPORTANT] From df727caaa9c33ad535234a8873d8aada3013e088 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 21 Feb 2026 22:18:35 +0700 Subject: [PATCH 4/6] Fix test --- tests/DeadLockTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/DeadLockTest.php b/tests/DeadLockTest.php index ade36946..d063466e 100644 --- a/tests/DeadLockTest.php +++ b/tests/DeadLockTest.php @@ -283,22 +283,22 @@ private function childrenUpdateLocked(): int return 1; } - try { - /* at first, parent should do 1st select */ - $this->log('child 2: wait signal from child 1'); + /* at first, parent should do 1st select */ + $this->log('child 2: wait signal from child 1'); - if (pcntl_sigtimedwait([SIGUSR1], $info, 10) <= 0) { - $this->log('child 2: wait timeout exceeded'); + if (pcntl_sigtimedwait([SIGUSR1], $info, 10) <= 0) { + $this->log('child 2: wait timeout exceeded'); - return 1; - } + return 1; + } - $this->log('child 2: connect'); + $this->log('child 2: connect'); - $second = $this->createConnection(); - $this->loadFixture(db: $second); - $second->open(); + $second = $this->createConnection(); + $this->loadFixture(db: $second); + $second->open(); + try { /* sleep(1); */ $this->log('child 2: transaction'); From 93c2b66a1c052960865833373fedc573c7dbf476 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 21 Feb 2026 22:18:57 +0700 Subject: [PATCH 5/6] Fix test --- tests/DeadLockTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DeadLockTest.php b/tests/DeadLockTest.php index d063466e..35fdbc8c 100644 --- a/tests/DeadLockTest.php +++ b/tests/DeadLockTest.php @@ -296,9 +296,10 @@ private function childrenUpdateLocked(): int $second = $this->createConnection(); $this->loadFixture(db: $second); - $second->open(); try { + $second->open(); + /* sleep(1); */ $this->log('child 2: transaction'); From e1e15ace485d453c9cf51edf38626d9148ec1ae7 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 22 Feb 2026 11:54:06 +0700 Subject: [PATCH 6/6] Add line to CHANGELOG.md [skip ci] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dca34edc..12b61b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Enh #459: Explicitly import constants in "use" section (@mspirkov) - Enh #460: Remove unnecessary files from Composer package (@mspirkov) +- Enh #461: Add `ext-pdo_mysql` to `require` section of `composer.json` (@Tigrov) ## 2.0.0 December 05, 2025