summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqldatabase.cpp
diff options
context:
space:
mode:
authorThiago Macieira <[email protected]>2024-04-18 07:55:59 -0700
committerThiago Macieira <[email protected]>2024-04-21 06:48:11 -0700
commitf0f2a9ef2600288b16b69c135389dfe1fea89a8d (patch)
treed68cdeafa81e19ad90edfda42b12046ff8092a2d /src/sql/kernel/qsqldatabase.cpp
parent8ef89c1c01c79de404d6bb0abe9072fb1438e2b1 (diff)
QString: ensure multi-arg arg() parses replacement like single-arg arg()
There was a discrepancy that the multi-arg arg() overload would accept any number of digits in the placeholder, resolving up to value 999 (e.g., %000001 was interpreted as placeholder #1), but the single-arg arg() overload only supported exactly one or two digits. The single-arg behavior was documented, so use it. [ChangeLog][Important Behavior Changes] The QString::arg() overload taking multiple QString-like arguments is now fixed to interpret placeholders like the other arg() overloads: it will find at most two digits after the '%' character. That is, the sequence "%123" is now interpreted as placeholder #12 followed by character '3' (verbatim). Pick-to: 6.7 Fixes: QTBUG-118581 Change-Id: I455fe22ef4ad4b2f9b01fffd17c767a948d41138 Reviewed-by: Ahmad Samir <[email protected]>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions