Skip to content

Commit dae5ac9

Browse files
authored
Update AbstractSQLExecutor.java
1 parent 8d16e66 commit dae5ac9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

APIJSONORM/src/main/java/apijson/orm/AbstractSQLExecutor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,11 +710,11 @@ protected String getKey(@NotNull SQLConfig config, @NotNull ResultSet rs, @NotNu
710710
, final int tablePosition, @NotNull JSONObject table, final int columnIndex, Map<String, JSONObject> childMap) throws Exception {
711711
String key = rsmd.getColumnLabel(columnIndex);// dotIndex < 0 ? lable : lable.substring(dotIndex + 1);
712712
if (config.isHive()) {
713-
String table_name = config.getTable();
714-
if (AbstractSQLConfig.TABLE_KEY_MAP.containsKey(table_name)) {
715-
table_name = AbstractSQLConfig.TABLE_KEY_MAP.get(table_name);
713+
String tableName = config.getTable();
714+
if (AbstractSQLConfig.TABLE_KEY_MAP.containsKey(tableName)) {
715+
tableName = AbstractSQLConfig.TABLE_KEY_MAP.get(tableName);
716716
}
717-
String pattern = "^" + table_name + "\\." + "[a-zA-Z]+$";
717+
String pattern = "^" + tableName + "\\." + "[a-zA-Z]+$";
718718
boolean isMatch = Pattern.matches(pattern, key);
719719
if (isMatch) {
720720
key = key.split("\\.")[1];
@@ -976,7 +976,7 @@ public ResultSet executeQuery(@NotNull SQLConfig config) throws Exception {
976976
public int executeUpdate(@NotNull SQLConfig config) throws Exception {
977977
PreparedStatement s = getStatement(config);
978978
int count = s.executeUpdate(); //PreparedStatement 不用传 SQL
979-
if (config.isHive() && count==0) {
979+
if (config.isHive() && count == 0) {
980980
count = 1;
981981
}
982982

0 commit comments

Comments
 (0)