use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLJoinTableSource method output.
public void output(Appendable buf) {
try {
this.left.output(buf);
buf.append(' ');
buf.append(JoinType.toString(this.joinType));
buf.append(' ');
this.right.output(buf);
if (this.condition != null) {
buf.append(" ON ");
this.condition.output(buf);
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLUnionQueryTableSource method output.
public void output(Appendable buf) {
try {
buf.append("(");
this.union.output(buf);
buf.append(")");
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class CalciteMySqlNodeVisitor method toSqlTypeName.
private SqlTypeName toSqlTypeName(SQLDataType dataType) {
long nameHashCode64 = dataType.nameHashCode64();
SqlTypeName sqlTypeName = nameHashCode64SqlTypeNameMapping.get(nameHashCode64);
if (sqlTypeName != null) {
return sqlTypeName;
}
throw new FastsqlException("TODO");
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLServerObjectReferenceExpr method output.
public void output(Appendable buf) {
try {
boolean flag = false;
if (server != null) {
buf.append(server);
flag = true;
}
if (flag) {
buf.append('.');
}
if (database != null) {
buf.append(database);
flag = true;
}
if (flag) {
buf.append('.');
}
if (schema != null) {
buf.append(schema);
flag = true;
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLBinaryExpr method output.
public void output(Appendable buf) {
try {
buf.append("b'");
buf.append(text);
buf.append('\'');
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
Aggregations