Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!785
Issue
#3191623
: Views aggregate queries do not escape the fields
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3191623
: Views aggregate queries do not escape the fields
issue/drupal-3191623:3191623-views-aggregate-queries
into
10.1.x
Overview
0
Commits
11
Pipelines
0
Changes
4
Closed
mondrake
requested to merge
issue/drupal-3191623:3191623-views-aggregate-queries
into
10.1.x
4 years ago
Overview
0
Commits
11
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
10.1.x
version 13
744038c8
2 years ago
version 12
bcdbcbfc
2 years ago
version 11
ec394260
2 years ago
version 10
f8cb55b8
2 years ago
version 9
64a99caa
2 years ago
version 8
753e64f3
2 years ago
version 7
d2af5fd2
2 years ago
version 6
3ddc271e
2 years ago
version 5
3ddc271e
2 years ago
version 4
3ddc271e
2 years ago
version 3
3ddc271e
2 years ago
version 2
f0e9fd2c
4 years ago
version 1
0052378c
4 years ago
10.1.x (base)
and
latest version
latest version
829a4379
11 commits,
2 years ago
version 13
744038c8
9 commits,
2 years ago
version 12
bcdbcbfc
8 commits,
2 years ago
version 11
ec394260
6 commits,
2 years ago
version 10
f8cb55b8
4 commits,
2 years ago
version 9
64a99caa
3 commits,
2 years ago
version 8
753e64f3
2 commits,
2 years ago
version 7
d2af5fd2
1 commit,
2 years ago
version 6
3ddc271e
428 commits,
2 years ago
version 5
3ddc271e
1 commit,
2 years ago
version 4
3ddc271e
428 commits,
2 years ago
version 3
3ddc271e
1 commit,
2 years ago
version 2
f0e9fd2c
1 commit,
4 years ago
version 1
0052378c
1 commit,
4 years ago
4 files
+
35
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Database/Query/Select.php
+
4
−
1
Options
@@ -878,7 +878,10 @@ public function __toString() {
// GROUP BY
if
(
$this
->
group
)
{
$query
.
=
"
\n
GROUP BY "
.
implode
(
', '
,
$this
->
group
);
$group_by_fields
=
array_map
(
function
(
string
$field
):
string
{
return
$this
->
connection
->
escapeField
(
$field
);
},
$this
->
group
);
$query
.
=
"
\n
GROUP BY "
.
implode
(
', '
,
$group_by_fields
);
}
// HAVING
Loading