This commit is contained in:
Looly
2022-09-22 03:33:30 +08:00
parent d959f3a24f
commit ba5f1f5264
40 changed files with 143 additions and 235 deletions

View File

@@ -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.");
}

View File

@@ -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;
}

View File

@@ -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() {