LAPTOP-5NTQJPUS\LT hai 11 meses
pai
achega
357455ceab
Modificáronse 1 ficheiros con 7 adicións e 8 borrados
  1. 7 8
      DataFusion/src/com/zskk/control/ViewController.java

+ 7 - 8
DataFusion/src/com/zskk/control/ViewController.java

@@ -34,14 +34,13 @@ public class ViewController extends Controller {
 	 * 在被连接数据库执行sql语句
 	 */
 	public void executeSql() {
-//		try {
-//			List<Record> d = Db.use("connected").find(this.getPara("sqlstr"));
-//			this.renderJson(d);
-//		} catch (Exception e) {
-//			// TODO: handle exception
-//			this.renderText(e.toString());
-//		}
-		this.renderText("succ");
+		try {
+			List<Record> d = Db.use("connected").find(this.getPara("sqlstr"));
+			this.renderJson(d);
+		} catch (Exception e) {
+			// TODO: handle exception
+			this.renderText(e.toString());
+		}
 	}
 
 	public void testConn() {