bug fixed for WallFilter deny show table statement. issue #1380

This commit is contained in:
wenshao
2016-08-22 23:57:40 +08:00
parent 4f01ae3a66
commit 637ce1627e
2 changed files with 24 additions and 35 deletions
@@ -0,0 +1,20 @@
package com.alibaba.druid.bvt.filter.wall;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.wall.WallProvider;
import com.alibaba.druid.wall.spi.MySqlWallProvider;
public class MySqlWallTest145 extends TestCase {
public void test_false() throws Exception {
WallProvider provider = new MySqlWallProvider();
String sql = "SHOW FULL TABLES WHERE Table_type != 'VIEW'";
Assert.assertTrue(
provider.checkValid(sql)
);
}
}