Skip to content
Snippets Groups Projects
Commit 1c1d4cec authored by gmantele's avatar gmantele
Browse files

[ADQL] Fix SQL translation of operations' alias: now, the alias is always...

[ADQL] Fix SQL translation of operations' alias: now, the alias is always surrounded by double quotes (so a sum between two numbers won't have the default alias +, but it will have +)
parent 1a698ff6
No related branches found
No related tags found
No related merge requests found
......@@ -403,8 +403,10 @@ public abstract class JDBCTranslator implements ADQLTranslator {
if (item.hasAlias()){
translation.append(" AS ");
appendIdentifier(translation, item.getAlias(), item.isCaseSensitive());
}else
translation.append(" AS ").append(item.getName());
}else{
translation.append(" AS ");
appendIdentifier(translation, item.getName(), true);
}
return translation.toString();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment