add testcase for #3929

This commit is contained in:
高铁
2020-10-06 11:31:42 +08:00
parent 4bca77b347
commit 837454756a
@@ -0,0 +1,16 @@
package com.alibaba.druid.bvt.bug;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import junit.framework.TestCase;
public class Issue3929 extends TestCase {
public void test_0() throws Exception {
String sql = "replace into table1 (id,name) values('1','aa'),('2','bb')";
SQLStatement stmt = SQLUtils.parseSingleMysqlStatement(sql);
assertEquals("replace into table1 (id, name)\n" +
"values ('1', 'aa'), ('2', 'bb')", stmt.toLowerCaseString());
}
}