mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql wall
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user