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
200200
201201 // find in Expressions
202202 String exprStr = " A.id=B.id and A.age = (select age from C)" ;
203- tableNames = TablesNamesFinder . findTables(sqlStr );
203+ tableNames = TablesNamesFinder . findTablesInExpression(exprStr );
204204 assertThat( tableNames ). containsExactlyInAnyOrder(" A" , " B" , " C" );
205205
206206
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ void testJoinSubSelect() throws JSQLParserException {
493493 assertThat ( tableNames ).containsExactlyInAnyOrder ("A" , "B" , "C" );
494494
495495 String exprStr = "A.id=B.id and A.age = (select age from C)" ;
496- tableNames = TablesNamesFinder .findTables ( sqlStr );
496+ tableNames = TablesNamesFinder .findTablesInExpression ( exprStr );
497497 assertThat ( tableNames ).containsExactlyInAnyOrder ("A" , "B" , "C" );
498498 }
499499}
You can’t perform that action at this time.
0 commit comments