use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLNCharExpr method output.
public void output(Appendable buf) {
try {
if ((this.text == null) || (this.text.length() == 0)) {
buf.append("NULL");
return;
}
buf.append("N'");
buf.append(this.text.replaceAll("'", "''"));
buf.append("'");
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLPropertyExpr method output.
public void output(Appendable buf) {
try {
this.owner.output(buf);
buf.append(".");
buf.append(this.name);
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLSetStatement method output.
public void output(Appendable buf) {
try {
buf.append("SET ");
for (int i = 0; i < items.size(); ++i) {
if (i != 0) {
buf.append(", ");
}
SQLAssignItem item = items.get(i);
item.output(buf);
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLSelectItem method output.
public void output(Appendable buf) {
try {
if (this.connectByRoot) {
buf.append(" CONNECT_BY_ROOT ");
}
this.expr.output(buf);
if ((this.alias != null) && (this.alias.length() != 0)) {
buf.append(" AS ");
buf.append(this.alias);
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLUpdateSetItem method output.
public void output(Appendable buf) {
try {
column.output(buf);
buf.append(" = ");
value.output(buf);
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
Aggregations