Skip to content

Commit

Permalink
Tianmu error ERROR 6 (HY000),when execute select..where like NULL #763
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 fadc2f2 commit d75cbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/tianmu/core/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ CondID Query::ConditionNumberFromComparison(Item *conds, const TabID &tmp_table,
!(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 and null, return to MySQL.
return CondID(-1); // Argument of LIKE is not a string or null, return to MySQL.
}
}
}
Expand Down

0 comments on commit d75cbb5

Please sign in to comment.