mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
Fix: issue#2845 SqlUtil.formatSql 格式化的sql换行异常
This commit is contained in:
@@ -11,4 +11,11 @@ public class SqlFormatterTest {
|
||||
String sql = "(select 1 from dual) union all (select 1 from dual)";
|
||||
SqlFormatter.format(sql);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testKeyword() {
|
||||
String sql = "select * from `order`";
|
||||
String format = SqlFormatter.format(sql);
|
||||
System.out.println(format);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user