From 6f64cc325d2488cbbcfe4a09b9aaf623381e7628 Mon Sep 17 00:00:00 2001 From: "chuntaek.shim" Date: Wed, 4 Dec 2024 13:07:14 +0900 Subject: [PATCH] slip --- src/parser/type_checking.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/parser/type_checking.c b/src/parser/type_checking.c index 20b7b68826..8c00816d2a 100644 --- a/src/parser/type_checking.c +++ b/src/parser/type_checking.c @@ -6157,6 +6157,13 @@ pt_apply_expressions_definition (PARSER_CONTEXT * parser, PT_NODE ** node) best_match = 0; break; + case PT_LIKE: + case PT_NOT_LIKE: + case PT_LIKE_LOWER_BOUND: + case PT_LIKE_UPPER_BOUND: + best_match = (arg1_type == PT_TYPE_BLOB) ? -1 : 0; + break; + case PT_CAST: assert (false); best_match = 0; @@ -6169,11 +6176,6 @@ pt_apply_expressions_definition (PARSER_CONTEXT * parser, PT_NODE ** node) case PT_CLOB_LENGTH: case PT_CLOB_TO_CHAR: - // - case PT_LIKE: - case PT_NOT_LIKE: - case PT_LIKE_LOWER_BOUND: - case PT_LIKE_UPPER_BOUND: best_match = (arg1_type != PT_TYPE_CLOB) ? -1 : 0; break;