summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <[email protected]>2022-10-17 10:42:36 +0300
committeruzhas <[email protected]>2022-10-17 10:42:36 +0300
commiteb2703f0c653180398aa49711ad3bf8e38487503 (patch)
tree5e42733e4be48a38fea9989b4ada4612533896ba
parent99884e915f4d3edcb1588b61fa689659e1a8e1d0 (diff)
fix use after move, CID 47699
-rw-r--r--ydb/core/formats/program.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/formats/program.h b/ydb/core/formats/program.h
index 166e4e121d0..7a94f4065a0 100644
--- a/ydb/core/formats/program.h
+++ b/ydb/core/formats/program.h
@@ -204,7 +204,7 @@ public:
, Operation(op)
, Arguments({std::move(arg)})
{
- if (arg.empty() && op != EAggregate::Count) {
+ if (Arguments[0].empty() && op != EAggregate::Count) {
// COUNT(*) doesn't have arguments
op = EAggregate::Unspecified;
}