提交 a4c75bdf authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 d3c9ff7c
...@@ -451,7 +451,7 @@ public interface CommandInterface { ...@@ -451,7 +451,7 @@ public interface CommandInterface {
* The type of a ALTER TABLE ADD IF NOT EXISTS statement. * The type of a ALTER TABLE ADD IF NOT EXISTS statement.
*/ */
int ALTER_TABLE_ADD_COLUMN_IF_NOT_EXISTS = 85; int ALTER_TABLE_ADD_COLUMN_IF_NOT_EXISTS = 85;
/** /**
* Get command type. * Get command type.
* *
......
...@@ -263,7 +263,7 @@ public class AlterTableAlterColumn extends SchemaCommand { ...@@ -263,7 +263,7 @@ public class AlterTableAlterColumn extends SchemaCommand {
if (columnList.length() > 0) { if (columnList.length() > 0) {
columnList.append(", "); columnList.append(", ");
} }
if ((type == CommandInterface.ALTER_TABLE_ADD_COLUMN if ((type == CommandInterface.ALTER_TABLE_ADD_COLUMN
|| type == CommandInterface.ALTER_TABLE_ADD_COLUMN_IF_NOT_EXISTS) && nc == newColumn) { || type == CommandInterface.ALTER_TABLE_ADD_COLUMN_IF_NOT_EXISTS) && nc == newColumn) {
Expression def = nc.getDefaultExpression(); Expression def = nc.getDefaultExpression();
columnList.append(def == null ? "NULL" : def.getSQL()); columnList.append(def == null ? "NULL" : def.getSQL());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论