improve sql parser

This commit is contained in:
wenshao
2013-08-07 15:01:22 +08:00
parent 5bf7efa01f
commit 113ef65352
28 changed files with 1581 additions and 35 deletions
@@ -18,17 +18,17 @@ package com.alibaba.druid.benckmark.wall;
import junit.framework.TestCase;
import com.alibaba.druid.wall.WallProvider;
import com.alibaba.druid.wall.spi.OracleWallProvider;
import com.alibaba.druid.wall.spi.MySqlWallProvider;
public class WallBenchmarkTest1 extends TestCase {
WallProvider provider = new OracleWallProvider();
WallProvider provider = new MySqlWallProvider();
public final static int COUNT = 1000 * 1000;
public void test_0() throws Exception {
String sql = "SELECT t1.department_id, t2.*\n" + //
"FROM hr_info t1, TABLE(t1.people) t2\n" + //
"FROM hr_info t1, x2 t2\n" + //
"WHERE t2.department_id = t1.department_id";
for (int i = 0; i < 10; ++i) {
provider.clearCache();