This commit is contained in:
Looly
2023-04-15 23:07:59 +08:00
parent 9781d5eb9f
commit 656c551068
13 changed files with 400 additions and 392 deletions

View File

@@ -108,7 +108,7 @@ public class AnsiSqlDialect implements Dialect {
@Override
public PreparedStatement psForPage(final Connection conn, final Query query) throws SQLException {
Assert.notNull(query, "query must be not null !");
if (StrUtil.hasBlank(query.getTableNames())) {
if (ArrayUtil.hasBlank(query.getTableNames())) {
throw new DbRuntimeException("Table name must be not empty !");
}

View File

@@ -338,7 +338,7 @@ public class SqlBuilder implements Builder<String> {
* @return 自己
*/
public SqlBuilder from(String... tableNames) {
if (ArrayUtil.isEmpty(tableNames) || StrUtil.hasBlank(tableNames)) {
if (ArrayUtil.isEmpty(tableNames) || ArrayUtil.hasBlank(tableNames)) {
throw new DbRuntimeException("Table name is blank in table names !");
}