Skip to content
Snippets Groups Projects
Commit 5cf26f1a authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Georg Ringer
Browse files

[TASK] Provide QueryHelper to prepare SQL fragments for the QueryBuilder

The QueryHelper deals with GROUP BY and ORDER BY strings coming from
sources where the data format is not strictly defined and the input
might be a string prefixes or otherwise unsuitable for immediate further
usage.

For GROUP BY strings the prefix is removed and the remainder of the
string is treated as a comma separated list of column names that get
parsed into an array.

For ORDER BY strings the prefix is removed and the remainder of the
string is treated as a list of comma separated column names, possibly
with a sort direction separated from the column name, that gets parsed
into an array.

For WHERE SQL fragments leading the leading logical operators "AND" and
"OR" get removed, no further modifications are performed on the string.

Resolves: #75559
Releases: master
Change-Id: I37016eda6597cab49b274f498188a8579dec7b2c
Reviewed-on: https://review.typo3.org/47636


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 1afd95e1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment