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