File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
test/java/net/sf/jsqlparser/util Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ The class ``net.sf.jsqlparser.util.TablesNamesFinder`` can be used to return all
200
200
201
201
// find in Expressions
202
202
String exprStr = " A.id=B.id and A.age = (select age from C)" ;
203
- tableNames = TablesNamesFinder . findTables(sqlStr );
203
+ tableNames = TablesNamesFinder . findTablesInExpression(exprStr );
204
204
assertThat( tableNames ). containsExactlyInAnyOrder(" A" , " B" , " C" );
205
205
206
206
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ void testJoinSubSelect() throws JSQLParserException {
493
493
assertThat ( tableNames ).containsExactlyInAnyOrder ("A" , "B" , "C" );
494
494
495
495
String exprStr = "A.id=B.id and A.age = (select age from C)" ;
496
- tableNames = TablesNamesFinder .findTables ( sqlStr );
496
+ tableNames = TablesNamesFinder .findTablesInExpression ( exprStr );
497
497
assertThat ( tableNames ).containsExactlyInAnyOrder ("A" , "B" , "C" );
498
498
}
499
499
}
You can’t perform that action at this time.
0 commit comments