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