Skip to content

Commit

Permalink
Tianmu error ERROR 6 (HY000),when execute select..where like NULL issue:
Browse files Browse the repository at this point in the history
  • Loading branch information
isredstar authored and mergify[bot] committed Nov 14, 2022
1 parent 07c4869 commit b3789e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/tianmu/core/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,8 @@ CondID Query::ConditionNumberFromComparison(Item *conds, const TabID &tmp_table,
if ((op == common::Operator::O_LIKE || op == common::Operator::O_NOT_LIKE) &&
!(an_arg->field_type() == MYSQL_TYPE_VARCHAR || an_arg->field_type() == MYSQL_TYPE_STRING ||
an_arg->field_type() == MYSQL_TYPE_VAR_STRING || an_arg->field_type() == MYSQL_TYPE_BLOB ||
an_arg->field_type() == MYSQL_TYPE_NULL)) { // issue: #763, Argument of LIKE is NULL
return CondID(-1); // Argument of LIKE is not a string or null, return to MySQL.
an_arg->field_type() == MYSQL_TYPE_NULL)) { // issue: #763, Argument of LIKE is NULL
return CondID(-1); // Argument of LIKE is not a string or null, return to MySQL.
}
}
}
Expand Down

0 comments on commit b3789e9

Please sign in to comment.