diff options
author | vvvv <vvvv@ydb.tech> | 2022-09-06 16:36:10 +0300 |
---|---|---|
committer | vvvv <vvvv@ydb.tech> | 2022-09-06 16:36:10 +0300 |
commit | 6454e0216ce8a315903c3231411ef80416de1e24 (patch) | |
tree | 8add3a06497e812359e6122ec69ae54ba920dcb0 | |
parent | e2c2814a65d6078ad550c13277d44f59d9c49ec1 (diff) | |
download | ydb-6454e0216ce8a315903c3231411ef80416de1e24.tar.gz |
use text for NULL literal
select fff(x) from (select null as x) a
Query Error: error: function fff(text) does not exist
-rw-r--r-- | ydb/library/yql/sql/pg/pg_sql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/sql/pg/pg_sql.cpp b/ydb/library/yql/sql/pg/pg_sql.cpp index 09a81af7e70..b3b8e853ae4 100644 --- a/ydb/library/yql/sql/pg/pg_sql.cpp +++ b/ydb/library/yql/sql/pg/pg_sql.cpp @@ -1472,7 +1472,7 @@ public: return L(A("PgConst"), QAX(ToString(StrVal(val))), L(A("PgType"), QA("text"))); } case T_Null: { - return L(A("Null")); + return L(A("PgCast"), L(A("Null")), L(A("PgType"), QA("text"))); } default: ValueNotImplemented(value, val); |