[BUGFIX] Statement::rowCount not reliable for SELECT queries
Concerning the usage of Statement::rowCount() the Doctrine DBAL documentation states the following: Returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object. For default configurations using MySQL as platform, rowCount() is returning the expected value for SELECT statements as well. However, on other DBMS this value will be zero as mentioned in the documentation - for instance SQLite is a candidate for that. For retrieving the row count for given criteria, the count() expression has to be used explicitly. Resolves: #78129 Releases: master Change-Id: Id28d72a1a21e8615ec45b63d4aecc100d03a39a3 Reviewed-on: https://review.typo3.org/50083 Reviewed-by:Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php 5 additions, 1 deletion...kend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php
- typo3/sysext/backend/Classes/History/RecordHistory.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/History/RecordHistory.php
- typo3/sysext/backend/Classes/View/PageLayoutView.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/View/PageLayoutView.php
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php 7 additions, 3 deletions...core/Classes/Authentication/BackendUserAuthentication.php
- typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php 5 additions, 1 deletion...ext/core/Classes/Configuration/FlexForm/FlexFormTools.php
- typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php 5 additions, 2 deletions...tional/DataHandling/AbstractDataHandlerActionTestCase.php
- typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php 13 additions, 7 deletions...e/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
- typo3/sysext/indexed_search/Classes/Domain/Repository/AdministrationRepository.php 12 additions, 3 deletions...ch/Classes/Domain/Repository/AdministrationRepository.php
- typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php 5 additions, 3 deletionstypo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
- typo3/sysext/info/Classes/Controller/TranslationStatusController.php 1 addition, 1 deletion...t/info/Classes/Controller/TranslationStatusController.php
- typo3/sysext/lowlevel/Classes/Command/DeletedRecordsCommand.php 5 additions, 2 deletions...sysext/lowlevel/Classes/Command/DeletedRecordsCommand.php
- typo3/sysext/lowlevel/Classes/Command/LostFilesCommand.php 2 additions, 1 deletiontypo3/sysext/lowlevel/Classes/Command/LostFilesCommand.php
- typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php 2 additions, 1 deletion.../sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 4 additions, 1 deletion...sext/recordlist/Classes/RecordList/DatabaseRecordList.php
Please register or sign in to comment