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