Examples of WallProvider


Examples of com.alibaba.druid.wall.WallProvider

import com.alibaba.druid.wall.spi.MySqlWallProvider;

public class MySqlWallTest116 extends TestCase {

    public void test_false() throws Exception {
        WallProvider provider = new MySqlWallProvider();
        provider.getConfig().setCommentAllow(false);

        String sql = "select * from t where id = ? or BIT_COUNT(3.5) = 1";

        Assert.assertFalse(provider.checkValid(sql));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.