提交 e89340d4 编写于 作者: T tristaZero

delete alias

上级 7e3d28b1
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
package org.apache.shardingsphere.core.rewrite.token.pojo; package org.apache.shardingsphere.core.rewrite.token.pojo;
import com.google.common.base.Strings;
import lombok.Getter; import lombok.Getter;
/** /**
...@@ -32,17 +31,14 @@ public final class SelectCipherItemToken extends SQLToken implements Substitutab ...@@ -32,17 +31,14 @@ public final class SelectCipherItemToken extends SQLToken implements Substitutab
private final String selectItemName; private final String selectItemName;
private final String alias; public SelectCipherItemToken(final int startIndex, final int stopIndex, final String selectItemName) {
public SelectCipherItemToken(final int startIndex, final int stopIndex, final String selectItemName, final String alias) {
super(startIndex); super(startIndex);
this.stopIndex = stopIndex; this.stopIndex = stopIndex;
this.selectItemName = selectItemName; this.selectItemName = selectItemName;
this.alias = alias;
} }
@Override @Override
public String toString() { 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.
先完成此消息的编辑!
想要评论请 注册