This commit is contained in:
温少
2012-03-14 14:02:18 +08:00
parent 649e51505d
commit b266a9c820
7 changed files with 40 additions and 17 deletions
@@ -39,6 +39,11 @@ public class MappingVisitorTest extends TestCase {
Assert.assertEquals("DELETE FROM device\nWHERE ip = '127.0.0.1'",
engine.explainToDeleteSQL("WHERE IP地址 = '127.0.0.1'"));
}
public void test_update() throws Exception {
Assert.assertEquals("UPDATE device\nSET serviceTag = ?\nWHERE ip = '127.0.0.1'",
engine.explainToUpdateSQL("SET 编号 = ? WHERE IP地址 = '127.0.0.1'"));
}
public void test_1() throws Exception {
engine.setMaxLimit(10);