提交 e89340d4 编写于 作者: T tristaZero

delete alias

上级 7e3d28b1
......@@ -17,7 +17,6 @@
package org.apache.shardingsphere.core.rewrite.token.pojo;
import com.google.common.base.Strings;
import lombok.Getter;
/**
......@@ -32,17 +31,14 @@ public final class SelectCipherItemToken extends SQLToken implements Substitutab
private final String selectItemName;
private final String alias;
public SelectCipherItemToken(final int startIndex, final int stopIndex, final String selectItemName, final String alias) {
public SelectCipherItemToken(final int startIndex, final int stopIndex, final String selectItemName) {
super(startIndex);
this.stopIndex = stopIndex;
this.selectItemName = selectItemName;
this.alias = alias;
}
@Override
public String toString() {
return Strings.isNullOrEmpty(alias) ? selectItemName : String.format("%s AS %s", selectItemName, alias);
return selectItemName;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册