Missing many files in last commit

In last commit, a lot of files has been missed
This commit is contained in:
morningman
2018-10-31 16:19:21 +08:00
parent 5d3fc80067
commit 051aced48d
596 changed files with 16703 additions and 18103 deletions

View File

@ -62,8 +62,14 @@ Status InPredicate::open(
Expr::open(state, context, scope);
for (int i = 1; i < _children.size(); ++i) {
if (_children[i]->type() != _children[0]->type()) {
return Status("InPredicate type not same");
if (_children[0]->type().is_string_type()) {
if (!_children[i]->type().is_string_type()) {
return Status("InPredicate type not same");
}
} else {
if (_children[i]->type().type != _children[0]->type().type) {
return Status("InPredicate type not same");
}
}
void* value = context->get_value(_children[i], NULL);