Skip to content

Commit

Permalink
slip
Browse files Browse the repository at this point in the history
  • Loading branch information
ctshim committed Dec 4, 2024
1 parent 9387f4d commit 6f64cc3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/parser/type_checking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit 6f64cc3

Please sign in to comment.