|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
package org.maxkey.util;
|
|
|
|
|
|
-import org.maxkey.pretty.impl.SqlPretty;
|
|
|
+import org.maxkey.pretty.PrettyFactory;
|
|
|
|
|
|
public class SqlPrettyTest {
|
|
|
|
|
@@ -26,10 +26,8 @@ public class SqlPrettyTest {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
- SqlPretty sf=new SqlPretty();
|
|
|
String sqlString="select * from userinfo where t='111' order by t,s,t";
|
|
|
- System.out.println(sf.format(sqlString));
|
|
|
+ System.out.println(PrettyFactory.getSqlPretty().format(sqlString));
|
|
|
}
|
|
|
|
|
|
}
|