summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrlolthe1st <[email protected]>2025-05-13 17:23:34 +0300
committermrlolthe1st <[email protected]>2025-05-13 17:38:39 +0300
commitdc63d5794da99c2ebe3f32914d0351d9707660b0 (patch)
tree12b74464eb8d902407dfb67bbc9c5ba35025ba67
parent277f0ead9f69a0347ad2af40653a60e95b69dfc2 (diff)
YQL-19611: Appropriate handle of null arguments in param score matching
commit_hash:aef029b757218731b5855868b341ffdb3fa79203
-rw-r--r--yql/essentials/parser/pg_catalog/catalog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yql/essentials/parser/pg_catalog/catalog.cpp b/yql/essentials/parser/pg_catalog/catalog.cpp
index 40a2d3a52b9..c47a0a15a01 100644
--- a/yql/essentials/parser/pg_catalog/catalog.cpp
+++ b/yql/essentials/parser/pg_catalog/catalog.cpp
@@ -2650,7 +2650,7 @@ ui64 CalcArgumentMatchScore(ui32 operArgTypeId, ui32 argTypeId, const TCatalog&
if (argTypeId == operArgTypeId) {
return ArgExactTypeMatch;
}
- if (argTypeId == UnknownOid) {
+ if (argTypeId == UnknownOid || argTypeId == InvalidOid) {
return ArgCoercibleTypeMatch;
}
// https://www.postgresql.org/docs/14/typeconv-oper.html, step 3.c