mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -65,7 +65,7 @@ public class AnsiSqlDialect implements Dialect {
|
||||
|
||||
final Condition[] where = query.getWhere();
|
||||
if (ArrayUtil.isEmpty(where)) {
|
||||
// 对于无条件的删除语句直接抛出异常禁止,防止误删除
|
||||
// 对于无条件删除语句直接抛出异常禁止,防止误删除
|
||||
throw new SQLException("No 'WHERE' condition, we can't prepared statement for delete everything.");
|
||||
}
|
||||
final SqlBuilder delete = SqlBuilder.of(wrapper).delete(query.getFirstTableName()).where(where);
|
||||
@@ -79,7 +79,7 @@ public class AnsiSqlDialect implements Dialect {
|
||||
|
||||
final Condition[] where = query.getWhere();
|
||||
if (ArrayUtil.isEmpty(where)) {
|
||||
// 对于无条件的删除语句直接抛出异常禁止,防止误删除
|
||||
// 对于无条件地删除语句直接抛出异常禁止,防止误删除
|
||||
throw new SQLException("No 'WHERE' condition, we can't prepare statement for update everything.");
|
||||
}
|
||||
|
||||
|
@@ -490,7 +490,7 @@ public class Condition implements Cloneable, Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
final List<String> strs = StrUtil.split(valueStr, StrUtil.C_SPACE, 2);
|
||||
final List<String> strs = StrUtil.split(valueStr, CharUtil.SPACE, 2);
|
||||
if (strs.size() < 2) {
|
||||
return;
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
*
|
||||
*/
|
||||
public class MetaUtilTest {
|
||||
DataSource ds = DSFactory.get("test");
|
||||
final DataSource ds = DSFactory.get("test");
|
||||
|
||||
@Test
|
||||
public void getTablesTest() {
|
||||
|
Reference in New Issue
Block a user