Assert.assertFalse(provider.checkValid(sql));
}
}
public void test_false2() throws Exception {
WallProvider provider = initWallProvider();
{
String sql = "SELECT characteristic.columnname + '|' + RTRIM(characteristic.rpid) as rpid ," //
+ " characteristic.columnname, characteristic.chnname " //
+ "FROM characteristic" //
+ " inner join content_sort" //
+ " on characteristic.rpid = content_sort.rpid and content_sort.opid = 2"
+ "WHERE (characteristic.columnname IN (" //
+ " SELECT name FROM syscolumns" //
+ " WHERE (id =(SELECT id FROM sysobjects WHERE (name = 'content')))" //
+ " AND (name NOT IN ('billid', 'itemno', 'tableid', 'rpid'))" //
+ " ))" //
+ " AND (characteristic.closed = 0)" //
+ "ORDER BY content_sort.sort, characteristic.code";
Assert.assertFalse(provider.checkValid(sql));
}
}