mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser.
This commit is contained in:
@@ -37,10 +37,18 @@ public class SQLUnique extends SQLConstraintImpl implements SQLUniqueConstraint,
|
||||
}
|
||||
|
||||
public void addColumn(SQLExpr column) {
|
||||
if (column == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
addColumn(new SQLSelectOrderByItem(column));
|
||||
}
|
||||
|
||||
public void addColumn(SQLSelectOrderByItem column) {
|
||||
if (column != null) {
|
||||
column.setParent(this);
|
||||
}
|
||||
this.columns.add(new SQLSelectOrderByItem(column));
|
||||
this.columns.add(column);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user