diff options
| author | vitya-smirnov <[email protected]> | 2025-10-07 09:34:39 +0300 |
|---|---|---|
| committer | vitya-smirnov <[email protected]> | 2025-10-07 09:52:14 +0300 |
| commit | babe7533f18c11be1f8a195ed2324d2d9a89436a (patch) | |
| tree | 45b7627141bf5a52b45a3d61fd1fbdd564bb8dd9 /yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp | |
| parent | 8fe7cfe254fde2772477a8933a163b5f303716b4 (diff) | |
YQL-20086 sql/v1
commit_hash:55bc611cdaa0d8a0fc3c4c7708ed9f17cc4976cf
Diffstat (limited to 'yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp b/yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp index 3577a6cf8d1..b14dba9220e 100644 --- a/yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp +++ b/yql/essentials/sql/v1/complete/analysis/global/parse_tree.cpp @@ -7,20 +7,20 @@ namespace NSQLComplete { - TMaybe<std::string> GetName(SQLv1::Bind_parameterContext* ctx) { - if (ctx == nullptr) { - return Nothing(); - } +TMaybe<std::string> GetName(SQLv1::Bind_parameterContext* ctx) { + if (ctx == nullptr) { + return Nothing(); + } - if (auto* x = ctx->an_id_or_type()) { - return x->getText(); - } else if (auto* x = ctx->TOKEN_TRUE()) { - return x->getText(); - } else if (auto* x = ctx->TOKEN_FALSE()) { - return x->getText(); - } else { - return Nothing(); - } + if (auto* x = ctx->an_id_or_type()) { + return x->getText(); + } else if (auto* x = ctx->TOKEN_TRUE()) { + return x->getText(); + } else if (auto* x = ctx->TOKEN_FALSE()) { + return x->getText(); + } else { + return Nothing(); } +} } // namespace NSQLComplete |
