[close #679] Let ColumnRef case insensitive (#678) #690

This commit is contained in:
ti-srebot 2022-12-20 21:08:47 +08:00 committed by GitHub
parent 6efa139d77
commit 571a47c4f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -123,9 +123,9 @@ public class ColumnRef extends Expression {
@Override
public int hashCode() {
if (isResolved()) {
return Objects.hash(this.name, this.dataType);
return Objects.hash(this.name.toLowerCase(), this.dataType);
} else {
return Objects.hashCode(name);
return Objects.hashCode(name.toLowerCase());
}
}