You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2018/09/09 13:08:20 UTC

[kylin] branch master updated: KYLIN-3488 bug fix for using MessageFormat.forma

This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 5fb5b0c  KYLIN-3488 bug fix for using MessageFormat.forma
5fb5b0c is described below

commit 5fb5b0cb580dfbbf8fffbdb30e9c44c7a45906c2
Author: shaofengshi <sh...@apache.org>
AuthorDate: Sun Sep 9 20:20:27 2018 +0800

    KYLIN-3488 bug fix for using MessageFormat.forma
---
 .../main/java/org/apache/kylin/common/persistence/JDBCResourceDAO.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core-common/src/main/java/org/apache/kylin/common/persistence/JDBCResourceDAO.java b/core-common/src/main/java/org/apache/kylin/common/persistence/JDBCResourceDAO.java
index 7ae61f0..9bf6c24 100644
--- a/core-common/src/main/java/org/apache/kylin/common/persistence/JDBCResourceDAO.java
+++ b/core-common/src/main/java/org/apache/kylin/common/persistence/JDBCResourceDAO.java
@@ -488,7 +488,7 @@ public class JDBCResourceDAO {
 
     private String getCheckTableExistsSql(final String tableName) {
         final String sql = new MessageFormat(jdbcSqlQueryFormat.getCheckTableExistsSql(), Locale.ROOT)
-                .format(tableName, new StringBuffer(), new FieldPosition(0)).toString();
+                .format(new Object[] { tableName }, new StringBuffer(), new FieldPosition(0)).toString();
         return sql;
     }