aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.ru>2022-02-11 19:30:53 +0300
committervvvv <vvvv@yandex-team.ru>2022-02-11 19:30:53 +0300
commit3028ff5a15464a1f5b4fe8ad0c4761dbd5272c29 (patch)
tree0c2f9c75539ad9e65bd385a31bb38476a18b6c5c
parent7eee61f2434d05fe551d110fd3582a88d9d13c1f (diff)
downloadydb-3028ff5a15464a1f5b4fe8ad0c4761dbd5272c29.tar.gz
YQL-13710 error cleanup
ref:2a18b154f446fd9cb03d00f51b226a00ecdff407
-rw-r--r--ydb/library/yql/parser/pg_query_wrapper/wrapper.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/ydb/library/yql/parser/pg_query_wrapper/wrapper.cpp b/ydb/library/yql/parser/pg_query_wrapper/wrapper.cpp
index 6e47c3a3e3..64a458f0c6 100644
--- a/ydb/library/yql/parser/pg_query_wrapper/wrapper.cpp
+++ b/ydb/library/yql/parser/pg_query_wrapper/wrapper.cpp
@@ -105,6 +105,7 @@ PgQueryInternalParsetreeAndError pg_query_raw_parse(const char* input) {
error->cursorpos = error_data->cursorpos;
result.error = error;
+ FlushErrorState();
}
PG_END_TRY();
@@ -154,18 +155,16 @@ void* MyAllocSetRealloc(MemoryContext context, void* pointer, Size size) {
void* ret = MyAllocSetAlloc(context, size);
if (pointer) {
- memcpy(ret, pointer, size);
+ memmove(ret, pointer, size);
}
return ret;
}
void MyAllocSetReset(MemoryContext context) {
- Y_FAIL("MyAllocSetReset");
}
void MyAllocSetDelete(MemoryContext context) {
- Y_FAIL("MyAllocSetDelete");
}
Size MyAllocSetGetChunkSpace(MemoryContext context, void* pointer) {