Merge branch 'master' into feature/support-h2-connection-pool-plugin

This commit is contained in:
吴晟 Wu Sheng 2017-10-26 15:16:35 +08:00 committed by GitHub
commit 0d6406226a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class InstanceH2CacheDAO extends H2DAO implements IInstanceCacheDAO {
@Override public int getApplicationId(int applicationInstanceId) {
logger.info("get the application id with application id = {}", applicationInstanceId);
H2Client client = getClient();
String sql = SqlBuilder.buildSql(GET_APPLICATION_ID_SQL, InstanceTable.COLUMN_APPLICATION_ID, InstanceTable.TABLE, InstanceTable.COLUMN_APPLICATION_ID);
String sql = SqlBuilder.buildSql(GET_APPLICATION_ID_SQL, InstanceTable.COLUMN_APPLICATION_ID, InstanceTable.TABLE, InstanceTable.COLUMN_INSTANCE_ID);
Object[] params = new Object[] {applicationInstanceId};
try (ResultSet rs = client.executeQuery(sql, params)) {
if (rs.next()) {