fixed bug:SlotRef.tosql() is the same as the SQL returned by different SQL

This commit is contained in:
marising
2020-05-13 15:06:44 +08:00
parent ca7c0717cd
commit f9f3a84e9d

View File

@ -162,6 +162,12 @@ public class SlotRef extends Expr {
return tblName.toSql() + "." + label + sb.toString();
} else if (label != null) {
return label + sb.toString();
} else if (desc.getSourceExprs() != null) {
for (Expr expr : desc.getSourceExprs()) {
sb.append(expr.toSql());
sb.append(" ");
}
return sb.toString();
} else {
return "<slot " + Integer.toString(desc.getId().asInt()) + ">" + sb.toString();
}