Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
41186ff3
Commit
41186ff3
authored
Feb 26, 2021
by
Michael Ott
Browse files
Fix function name parsing for aggregates
parent
e43e147c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/dcdbquery/query.cpp
View file @
41186ff3
...
...
@@ -290,10 +290,8 @@ void DCDBQuery::parseSensorSpecification(const std::string sensor, std::string&
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_MAX
;
}
else
if
(
boost
::
iequals
(
functName
,
"avg"
))
{
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_AVG
;
}
else
if
(
boost
::
iequals
(
functName
,
"min"
))
{
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_SUM
;
}
else
if
(
boost
::
iequals
(
functName
,
"sum"
))
{
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_
MIN
;
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_
SUM
;
}
else
if
(
boost
::
iequals
(
functName
,
"count"
))
{
queryCfg
.
aggregate
=
DCDB
::
AGGREGATE_COUNT
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment