|
31 | 31 | * @author tw
|
32 | 32 | */
|
33 | 33 | public class ExpressionVisitorAdapterTest {
|
| 34 | + |
34 | 35 | @Test
|
35 | 36 | public void testInExpressionProblem() throws JSQLParserException {
|
36 | 37 | final List<Object> exprList = new ArrayList<>();
|
@@ -210,42 +211,42 @@ public void testAtTimeZoneExpression() throws JSQLParserException {
|
210 | 211 | ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter();
|
211 | 212 | expr.accept(adapter);
|
212 | 213 | }
|
213 |
| - |
| 214 | + |
214 | 215 | @Test
|
215 | 216 | public void testJsonFunction() throws JSQLParserException {
|
216 |
| - ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter(); |
| 217 | + ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter(); |
217 | 218 | CCJSqlParserUtil
|
218 |
| - .parseExpression("JSON_OBJECT( KEY foo VALUE bar, KEY foo VALUE bar)") |
219 |
| - .accept(adapter); |
| 219 | + .parseExpression("JSON_OBJECT( KEY foo VALUE bar, KEY foo VALUE bar)") |
| 220 | + .accept(adapter); |
220 | 221 | CCJSqlParserUtil
|
221 |
| - .parseExpression("JSON_ARRAY( (SELECT * from dual) )") |
222 |
| - .accept(adapter); |
| 222 | + .parseExpression("JSON_ARRAY( (SELECT * from dual) )") |
| 223 | + .accept(adapter); |
223 | 224 | }
|
224 |
| - |
| 225 | + |
225 | 226 | @Test
|
226 | 227 | public void testJsonAggregateFunction() throws JSQLParserException {
|
227 | 228 | ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter();
|
228 | 229 | CCJSqlParserUtil
|
229 |
| - .parseExpression("JSON_OBJECTAGG( KEY foo VALUE bar NULL ON NULL WITH UNIQUE KEYS ) FILTER( WHERE name = 'Raj' ) OVER( PARTITION BY name )") |
230 |
| - .accept(adapter); |
| 230 | + .parseExpression("JSON_OBJECTAGG( KEY foo VALUE bar NULL ON NULL WITH UNIQUE KEYS ) FILTER( WHERE name = 'Raj' ) OVER( PARTITION BY name )") |
| 231 | + .accept(adapter); |
231 | 232 | CCJSqlParserUtil
|
232 |
| - .parseExpression("JSON_ARRAYAGG( a FORMAT JSON ABSENT ON NULL ) FILTER( WHERE name = 'Raj' ) OVER( PARTITION BY name )") |
233 |
| - .accept(adapter); |
| 233 | + .parseExpression("JSON_ARRAYAGG( a FORMAT JSON ABSENT ON NULL ) FILTER( WHERE name = 'Raj' ) OVER( PARTITION BY name )") |
| 234 | + .accept(adapter); |
234 | 235 | }
|
235 |
| - |
| 236 | + |
236 | 237 | @Test
|
237 | 238 | public void testConnectedByRootExpression() throws JSQLParserException {
|
238 | 239 | ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter();
|
239 | 240 | CCJSqlParserUtil
|
240 |
| - .parseExpression("CONNECT_BY_ROOT last_name as name") |
241 |
| - .accept(adapter); |
| 241 | + .parseExpression("CONNECT_BY_ROOT last_name as name") |
| 242 | + .accept(adapter); |
242 | 243 | }
|
243 |
| - |
| 244 | + |
244 | 245 | @Test
|
245 | 246 | public void testRowConstructor() throws JSQLParserException {
|
246 | 247 | ExpressionVisitorAdapter adapter = new ExpressionVisitorAdapter();
|
247 | 248 | CCJSqlParserUtil
|
248 |
| - .parseExpression("CAST(ROW(dataid, value, calcMark) AS ROW(datapointid CHAR, value CHAR, calcMark CHAR))") |
249 |
| - .accept(adapter); |
| 249 | + .parseExpression("CAST(ROW(dataid, value, calcMark) AS ROW(datapointid CHAR, value CHAR, calcMark CHAR))") |
| 250 | + .accept(adapter); |
250 | 251 | }
|
251 | 252 | }
|
0 commit comments