mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix sql formater bug
This commit is contained in:
14
hutool-db/src/test/java/cn/hutool/db/sql/SqlFormatterTest.java
Executable file
14
hutool-db/src/test/java/cn/hutool/db/sql/SqlFormatterTest.java
Executable file
@@ -0,0 +1,14 @@
|
||||
package cn.hutool.db.sql;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SqlFormatterTest {
|
||||
|
||||
@Test
|
||||
public void formatTest(){
|
||||
// issue#I3XS44@Gitee
|
||||
// 测试是否空指针错误
|
||||
String sql = "(select 1 from dual) union all (select 1 from dual)";
|
||||
SqlFormatter.format(sql);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user