This commit is contained in:
温少
2012-03-14 14:25:29 +08:00
parent b266a9c820
commit 6b7958dbfd
10 changed files with 74 additions and 49 deletions
@@ -44,6 +44,11 @@ public class MappingVisitorTest extends TestCase {
Assert.assertEquals("UPDATE device\nSET serviceTag = ?\nWHERE ip = '127.0.0.1'",
engine.explainToUpdateSQL("SET 编号 = ? WHERE IP地址 = '127.0.0.1'"));
}
public void test_insert() throws Exception {
Assert.assertEquals("INSERT INTO device\n(serviceTag, ip)\nVALUES\n(?, ?)",
engine.explainToInsertSQL("(编号, IP地址) VALUES (?, ?)"));
}
public void test_1() throws Exception {
engine.setMaxLimit(10);