Closes #3488467
Closes #3488467
Merge request reports
Activity
added 20 commits
-
89baf5d9...4c9cd84e - 10 commits from branch
project:11.x
- ed5e136a - Update PdoTrait.php
- c895c31a - Update PdoTrait.php
- 4d21d6d0 - Update file PdoTrait.php
- 8873f498 - Update file PdoTrait.php
- 993ce381 - some tuning of typehints in PdoTrait
- 92b4a731 - Update file PdoTrait.php
- af8296ba - typehint
- 47491524 - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- 1e3a6b82 - Merge branch '3487851-replace-pdofetch-constants' into 3488467-pp-1-introduce-a
- 8fa7c8ca - introduce PrefetchedResult
Toggle commit list-
89baf5d9...4c9cd84e - 10 commits from branch
added 26 commits
-
cdb26fd0...efa73ebf - 24 commits from branch
project:11.x
- 5f279f05 - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- b9a845bd - Merge branch '3487851-replace-pdofetch-constants' into 3488467-pp-1-introduce-a
-
cdb26fd0...efa73ebf - 24 commits from branch
added 135 commits
-
b9a845bd...38d18a4f - 133 commits from branch
project:11.x
- 1a5705a8 - Merge branch '11.x' into 3488467-pp-1-introduce-a
- a066a138 - work around defining a base resultclass
-
b9a845bd...38d18a4f - 133 commits from branch
added 8 commits
-
bb4dad65...7ce1914f - 6 commits from branch
project:11.x
- 79cdf10c - Merge branch '11.x' into 3488467-pp-1-introduce-a
- 127ba785 - fixes
-
bb4dad65...7ce1914f - 6 commits from branch
added 39 commits
-
78cd4572...efee4d2f - 36 commits from branch
project:11.x
- 3068805c - Merge branch '11.x' into 3488467-pp-1-introduce-a
- 30bc210c - fix mysql ConnectionTest
- 346d7d3b - Merge branch '3488467-pp-1-introduce-a' of git.drupal.org:issue/drupal-3488467...
Toggle commit list-
78cd4572...efee4d2f - 36 commits from branch
added 42 commits
-
10df0660...0c9b4fcd - 34 commits from branch
project:11.x
- 567e832d - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- 13592ba8 - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- f06bf6c0 - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- b568ff01 - fix PdoTrait PHPDocs
- 2db278b4 - Merge branch '11.x' into 3488467-pp-1-introduce-a
- 2e1a13af - Merge branch '11.x' into 3487851-replace-pdofetch-constants
- 6bbc0adc - fix new tests reintroduced usage of \PDO::FETCH_COLUMN
- 7033eeca - Merge branch '3487851-replace-pdofetch-constants' into 3488467-pp-1-introduce-a
Toggle commit list-
10df0660...0c9b4fcd - 34 commits from branch
added 206 commits
-
7033eeca...616d1046 - 205 commits from branch
project:11.x
- a55799c5 - Merge branch '11.x' into 3488467-pp-1-introduce-a
-
7033eeca...616d1046 - 205 commits from branch
added 6 commits
-
006367a0...31a1eb28 - 4 commits from branch
project:11.x
- 5522dc11 - Merge branch '11.x' into 3488467-pp-1-introduce-a
- da4b84b7 - fix
-
006367a0...31a1eb28 - 4 commits from branch
added 1 commit
- 530c1453 - moved event dispatching to StatementBase as protecte methods
added 18 commits
-
57d103ab...0c430949 - 17 commits from branch
project:11.x
- 9bc4ae34 - Merge branch '11.x' into 3488467-pp-1-introduce-a
-
57d103ab...0c430949 - 17 commits from branch
- Resolved by mondrake
- Resolved by mondrake
- Resolved by mondrake
1 <?php 2 3 declare(strict_types=1); 4 5 namespace Drupal\Core\Database\Statement; 6 7 use Drupal\Core\Database\FetchModeTrait; 8 9 /** 10 * Base class for results of a data query language (DQL) statement. 11 */ 12 abstract class ResultBase { Well I honestly believe the result of a statement execution should be a separate object from the statement object. That's what mysqli does for instance: https://www.php.net/manual/en/class.mysqli-result.php
The fact that PDOStatement incapsulate its own results in itself is not a best practice IMHO.
And, a separate result object for prefetched data can be reused more easily by other Statement implementations without having to rewrite all the methods.
Also, the new Result classes are not API (StatementInterface is totally untouched), just internal refactoring. But in the future, if necessary/wanted, fetch methods could be moved away from StatementInterface into a new API like other db abstraction layer did (DBAL, for instance). But I do not see need for that ATM.
Finally, the methods in the new classes are now fully typehinted and that made development easier (for instance avoiding \PDO::FETCH* classes being passed in etc.).
added 13 commits
-
83b070c5...c29d83bc - 11 commits from branch
project:11.x
- 62b45ba1 - Merge branch '11.x' into 3488467-pp-1-introduce-a
- 1288842c - fixes
-
83b070c5...c29d83bc - 11 commits from branch
added 94 commits
-
1288842c...f3cba0bd - 93 commits from branch
project:11.x
- e2229ddd - Merge branch drupal:11.x into 3488467-pp-1-introduce-a
-
1288842c...f3cba0bd - 93 commits from branch
added 19 commits
-
e2229ddd...38db6cc0 - 18 commits from branch
project:11.x
- 0f8b1bb6 - Merge branch drupal:11.x into 3488467-pp-1-introduce-a
-
e2229ddd...38db6cc0 - 18 commits from branch
added 4 commits
-
0f8b1bb6...42b3b113 - 3 commits from branch
project:11.x
- 225c8457 - Merge branch drupal:11.x into 3488467-pp-1-introduce-a
-
0f8b1bb6...42b3b113 - 3 commits from branch
added 11 commits
-
225c8457...1e391b33 - 10 commits from branch
project:11.x
- ec351a3c - Merge branch drupal:11.x into 3488467-pp-1-introduce-a
-
225c8457...1e391b33 - 10 commits from branch