mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql parser.
This commit is contained in:
@@ -122,6 +122,8 @@ public class DMLReplaceParserTest extends TestCase {
|
||||
SQLStatement stmt = parser.parseStatementList().get(0);
|
||||
parser.match(Token.EOF);
|
||||
String output = SQLUtils.toMySqlString(stmt);
|
||||
Assert.assertEquals("REPLACE LOW_PRIORITY INTO t1 (col1)\n\tSELECT id\n\tFROM t3", output);
|
||||
Assert.assertEquals("REPLACE LOW_PRIORITY INTO t1 (col1)\n" +
|
||||
"\t(SELECT id\n" +
|
||||
"\tFROM t3)", output);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user