|
9 | 9 | */ |
10 | 10 | package net.sf.jsqlparser.statement.insert; |
11 | 11 |
|
| 12 | +import static net.sf.jsqlparser.test.TestUtils.assertDeparse; |
| 13 | +import static net.sf.jsqlparser.test.TestUtils.assertOracleHintExists; |
| 14 | +import static net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed; |
| 15 | +import static net.sf.jsqlparser.test.TestUtils.assertStatementCanBeDeparsedAs; |
| 16 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 17 | +import static org.junit.jupiter.api.Assertions.assertFalse; |
| 18 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 19 | +import static org.junit.jupiter.api.Assertions.assertNull; |
| 20 | +import static org.junit.jupiter.api.Assertions.assertThrows; |
| 21 | +import static org.junit.jupiter.api.Assertions.assertThrowsExactly; |
| 22 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 23 | + |
| 24 | +import java.io.StringReader; |
| 25 | +import java.util.List; |
12 | 26 | import net.sf.jsqlparser.JSQLParserException; |
13 | 27 | import net.sf.jsqlparser.expression.Alias; |
14 | 28 | import net.sf.jsqlparser.expression.DoubleValue; |
|
34 | 48 | import org.junit.jupiter.params.ParameterizedTest; |
35 | 49 | import org.junit.jupiter.params.provider.ValueSource; |
36 | 50 |
|
37 | | -import java.io.StringReader; |
38 | | -import java.util.List; |
39 | | - |
40 | | -import static net.sf.jsqlparser.test.TestUtils.assertDeparse; |
41 | | -import static net.sf.jsqlparser.test.TestUtils.assertOracleHintExists; |
42 | | -import static net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed; |
43 | | -import static net.sf.jsqlparser.test.TestUtils.assertStatementCanBeDeparsedAs; |
44 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
45 | | -import static org.junit.jupiter.api.Assertions.assertFalse; |
46 | | -import static org.junit.jupiter.api.Assertions.assertNotNull; |
47 | | -import static org.junit.jupiter.api.Assertions.assertNull; |
48 | | -import static org.junit.jupiter.api.Assertions.assertThrows; |
49 | | -import static org.junit.jupiter.api.Assertions.assertThrowsExactly; |
50 | | -import static org.junit.jupiter.api.Assertions.assertTrue; |
51 | | - |
52 | 51 | public class InsertTest { |
53 | 52 |
|
54 | 53 | private final CCJSqlParserManager parserManager = new CCJSqlParserManager(); |
@@ -400,8 +399,9 @@ public void testInsertValuesAliasWithDuplicateEliminationIssue() throws JSQLPars |
400 | 399 | assertSqlCanBeParsedAndDeparsed("INSERT INTO t1 (a,b,c) VALUES (1,2,3),(4,5,6) AS new" |
401 | 400 | + " ON DUPLICATE KEY UPDATE c = new.a+new.b;"); |
402 | 401 |
|
403 | | - assertSqlCanBeParsedAndDeparsed("INSERT INTO t1 (a,b,c) VALUES (1,2,3),(4,5,6) AS new(m,n,p) " |
404 | | - + " ON DUPLICATE KEY UPDATE c = m+n;"); |
| 402 | + assertSqlCanBeParsedAndDeparsed( |
| 403 | + "INSERT INTO t1 (a,b,c) VALUES (1,2,3),(4,5,6) AS new(m,n,p) " |
| 404 | + + " ON DUPLICATE KEY UPDATE c = m+n;"); |
405 | 405 | } |
406 | 406 |
|
407 | 407 | @Test |
|
0 commit comments