Review main Merged

81934[TASK] Avoid deprecated `Platform->getStringLiteralQuoteCharacter()`

Stefan Bürk CR +2 V +2 Easy +16 −20 updated 11/23/23, 19:15

Commit message

The doctrine team deprecated within `doctrine/dbal 3.x` the
`Platform->getStringLiteralQuoteCharacter()`, postulating
that this is a implementation detail and not a public required
information [1][2].

TYPO3 extends a couple of classes to provide some advanced
abilities to help extension author's avoiding casual safety
traps and additional features. The `ExpressionBuilder` is
one of these classes. Extended methods quotes values per
default, and therefore requires to unquote values at some
points to avoid double quoting of values.

This change removes the call to the deprecated method on
the platform and directly replaces it with the value, as
all supported platforms will return the same quoting char.

Tests are adjusted accordingly.

[1] https://github.com/doctrine/dbal/blob/3.7.x/UPGRADE.md#deprecated-abstractplatform-methods-exposing-quote-characters
[2] https://github.com/doctrine/dbal/pull/5388

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 4