Commit 61b4b3e1 by 陶光胜

取数平台调整

parent 01bf55e4
......@@ -188,7 +188,7 @@ public class FreeQueryController {
if(sql.indexOf("information_schema.columns") > 0){
sql = "SELECT tmpTable.* FROM (" + sql + ") AS tmpTable LIMIT 1000";
} else {
if(sql.indexOf("limit")>0 || sql.indexOf("LIMIT")>0){
if(sql.indexOf("limit ")>0 || sql.indexOf("LIMIT ")>0){
int start = 0;
if(sql.indexOf("limit")>0){
start = sql.indexOf("limit") + 6;
......@@ -217,7 +217,7 @@ public class FreeQueryController {
}
public static void main(String[] args) {
String sql = "SELECT * FROM tab_gic_store limit 10000";
String sql = "SELECT * FROM tab_gic_store limit 10000";
String s = new FreeQueryController().parseSql(sql);
System.out.println("s = " + s);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment