bug fixed for WallFilter. issue #1943

This commit is contained in:
wenshao
2017-09-04 03:10:27 +08:00
parent 29fbe65a77
commit ac3626617a
3 changed files with 21 additions and 31 deletions
@@ -0,0 +1,18 @@
package com.alibaba.druid.bvt.filter.wall.mysql;
import com.alibaba.druid.wall.WallProvider;
import com.alibaba.druid.wall.spi.MySqlWallProvider;
import junit.framework.TestCase;
import org.junit.Assert;
public class MySqlWallTest147_optimize extends TestCase {
public void test_false() throws Exception {
WallProvider provider = new MySqlWallProvider();
String sql = "optimize table table1";
Assert.assertTrue(
provider.checkValid(sql)
);
}
}