improve sql wall

This commit is contained in:
yakolee
2014-04-10 11:20:02 +08:00
parent b5eda0cf2e
commit e62605bfed
3 changed files with 12 additions and 3 deletions
@@ -45,5 +45,8 @@ public class MySqlWallTest extends TestCase {
Assert.assertTrue(WallUtils.isValidateMySql("select 'outfile'"));
Assert.assertFalse(WallUtils.isValidateMySql("select f1, f2 from t union select 1, 2"));
Assert.assertTrue(WallUtils.isValidateMySql("select c1 from t where 1=1 or id =1"));
Assert.assertFalse(WallUtils.isValidateMySql("select c1 from t where id =1 or 1=1"));
}
}