Commit eea7bb8
committed
[TASK] Avoid
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.xrowCount() for select query1 parent 1a76a44 commit eea7bb8
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | | - | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
0 commit comments