Skip to content

Commit 006b632

Browse files
committed
add doc
1 parent 58a6aba commit 006b632

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

client-java/sql/src/main/java/org/evomaster/client/java/sql/internal/SqlNameContext.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ public void visit(ParenthesedFromItem aThis) {
262262

263263

264264
private static void handleAlias(Map<String, String> aliases, ParenthesedSelect select) {
265+
/*
266+
The alias belongs to the parenthesized FROM item itself. Do not read
267+
it from the inner select, as UNION/INTERSECT/EXCEPT subqueries are
268+
represented by JSqlParser as SetOperationList, not PlainSelect.
269+
*/
265270
Alias alias = select.getAlias();
266271
if (alias != null) {
267272
String aliasName = alias.getName();
@@ -289,4 +294,3 @@ private static void handleAlias(Map<String, String> aliases, Table table) {
289294
}
290295
}
291296
}
292-

0 commit comments

Comments
 (0)