提交 dd309557 authored 作者: noelgrandin's avatar noelgrandin

add column type STRING_IGNORECASE to the kinds of columns we can change the…

add column type STRING_IGNORECASE to the kinds of columns we can change the length of without needing to copy the table
上级 6cf9ee70
......@@ -115,7 +115,7 @@ public class AlterTableAlterColumn extends SchemaCommand {
case CommandInterface.ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE: {
// If the change is only increasing the length of a VARCHAR type, then we don't need to copy the table
// because the length is only a constraint, and does not affect the storage structure.
if (oldColumn.getType() == Value.STRING
if ((oldColumn.getType() == Value.STRING || oldColumn.getType() == Value.STRING_IGNORECASE)
&& oldColumn.getPrecision() <= newColumn.getPrecision()
&& oldColumn.isNullable() == newColumn.isNullable()
&& oldColumn.isAutoIncrement() == newColumn.isAutoIncrement()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论