Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Avoid rowCount() for select query #233

Merged
merged 1 commit into from
May 15, 2023
Merged

[TASK] Avoid rowCount() for select query #233

merged 1 commit into from
May 15, 2023

Conversation

sbuerk
Copy link
Contributor

@sbuerk sbuerk commented May 15, 2023

Using the rowCount( method for an SELECT query
is not reliable. That's already documented in the
TYPO3 documentation. It's recommended to use a COUNT()
query instead.

See: https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/Database/Statement/Index.html#rowcount

This change uses now a COUNT(*) based query to avoid
the unreliable rowCount() method in the corresponding
WebVision\WvDeepltranslate\Upgrades\GlossaryUpgradeWizard.

This will be fixed in main within other stuffs and this
is only the manual backport for the 3.x branch.

Releases: 3.x

Using the `rowCount(` method for an `SELECT` query
is not reliable. That's already documented in the
TYPO3 documentation. It's recommended to use a `COUNT()`
query instead.

See: https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/Database/Statement/Index.html#rowcount

This change uses now a `COUNT(*)` based  query to avoid
the unreliable `rowCount()` method in the corresponding
`WebVision\WvDeepltranslate\Upgrades\GlossaryUpgradeWizard`.

This will be fixed in main within other stuffs and this
is only the manual backport for the 3.x branch.

Releases: 3.x
@calien666 calien666 merged commit 643ced1 into 3.0 May 15, 2023
@calien666 calien666 deleted the stefan-2 branch May 15, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants