Commit a739f0fa authored by gmantele's avatar gmantele
Browse files

ADQL: Provide the position of any column reference (column in ORDER and GROUP...

ADQL: Provide the position of any column reference (column in ORDER and GROUP BY) when returning a ParseException
parent 6aca85cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -411,10 +411,11 @@ public class DBChecker implements QueryChecker {
				else
					return null;
			}else
				throw new ParseException("Column index out of bounds: " + index + " (must be between 1 and " + select.size() + ") !");
				throw new ParseException("Column index out of bounds: " + index + " (must be between 1 and " + select.size() + ") !", colRef.getPosition());
		}else{
			ADQLColumn col = new ADQLColumn(colRef.getColumnName());
			col.setCaseSensitive(colRef.isCaseSensitive());
			col.setPosition(colRef.getPosition());

			// search among the select_item aliases:
			if (col.getTableName() == null){