fix: mysql 同不出错

This commit is contained in:
taojinlong 2023-02-20 15:58:28 +08:00
parent e55516866b
commit d0debd5c22

View File

@ -808,7 +808,7 @@ public class MysqlQueryProvider extends QueryProvider {
}
return stringBuilder.toString();
}).toArray(String[]::new);
return MessageFormat.format("SELECT {0} FROM {1} LIMIT DE_OFFSET, DE_PAGE_SIZE ", StringUtils.join(array, ","), table);
return MessageFormat.format("SELECT {0} FROM {1} LIMIT DE_OFFSET, DE_PAGE_SIZE ", StringUtils.join(array, ","), String.format(MySQLConstants.KEYWORD_TABLE, table));
}
public String getTotalCount(boolean isTable, String sql, Datasource ds) {