Skip to content

Commit

Permalink
for #398
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Oct 10, 2017
1 parent 79fb211 commit 79d3d55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

1. [ISSUE #387](https://github.com/shardingjdbc/sharding-jdbc/issues/387) 当函数+列名中存在'`'防止关键字时处理出错
1. [ISSUE #394](https://github.com/shardingjdbc/sharding-jdbc/issues/394) 无法单独close statement
1. [ISSUE #398](https://github.com/shardingjdbc/sharding-jdbc/issues/398) 使用Hint路由屏蔽表和列名称的大小写区别

## 1.5.4.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
* Sharding key.
*
* @author zhangliang
*/
// TODO move to a suitable package
@RequiredArgsConstructor
@EqualsAndHashCode
public final class ShardingKey {

Expand All @@ -41,4 +39,9 @@ public final class ShardingKey {
*/
@Getter
private final String shardingColumn;

public ShardingKey(final String logicTable, final String shardingColumn) {
this.logicTable = logicTable.toLowerCase();
this.shardingColumn = shardingColumn.toLowerCase();
}
}

0 comments on commit 79d3d55

Please sign in to comment.