summaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/pg_wrapper/parser.cpp
diff options
context:
space:
mode:
authorvityaman <[email protected]>2025-04-07 23:50:34 +0300
committerrobot-piglet <[email protected]>2025-04-08 00:17:32 +0300
commit5af5cb3b7b423f2d3fcebf2e1406d37cbd6f3bbf (patch)
tree4a846ecb4e938d459032f34cf013fe5dfdb1010b /yql/essentials/parser/pg_wrapper/parser.cpp
parent6a114f0cafe3074d67f8022fe051f0b28dfe31ab (diff)
YQL-19747 Improve yql_complete tool and add input validation
No description --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1185 commit_hash:1def5874ff6a9a5b3dcdd0ad285d2e64b16c9306
Diffstat (limited to 'yql/essentials/parser/pg_wrapper/parser.cpp')
-rw-r--r--yql/essentials/parser/pg_wrapper/parser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/yql/essentials/parser/pg_wrapper/parser.cpp b/yql/essentials/parser/pg_wrapper/parser.cpp
index 94369296a87..c7dc29756ca 100644
--- a/yql/essentials/parser/pg_wrapper/parser.cpp
+++ b/yql/essentials/parser/pg_wrapper/parser.cpp
@@ -2,7 +2,9 @@
#include "arena_ctx.h"
+#include <util/charset/utf8.h>
#include <util/generic/scope.h>
+
#include <fcntl.h>
#include <stdint.h>
@@ -219,7 +221,7 @@ void PGParse(const TString& input, IPGParseEvents& events) {
break;
}
- if (!TTextWalker::IsUtf8Intermediate(input[i])) {
+ if (!IsUTF8ContinuationByte(input[i])) {
++codepoints;
}
walker.Advance(input[i]);