提交 6d915060 authored 作者: Thomas Mueller's avatar Thomas Mueller

Rename error code (the number is the number of parameters)

上级 4609b202
...@@ -60,7 +60,7 @@ public class DropIndex extends SchemaCommand { ...@@ -60,7 +60,7 @@ public class DropIndex extends SchemaCommand {
if (Constraint.PRIMARY_KEY.equals(cons.getConstraintType())) { if (Constraint.PRIMARY_KEY.equals(cons.getConstraintType())) {
pkConstraint = cons; pkConstraint = cons;
} else { } else {
throw DbException.get(ErrorCode.INDEX_BELONGS_TO_CONSTRAINT_1, indexName, cons.getName()); throw DbException.get(ErrorCode.INDEX_BELONGS_TO_CONSTRAINT_2, indexName, cons.getName());
} }
} }
} }
......
...@@ -1283,7 +1283,7 @@ public class ErrorCode { ...@@ -1283,7 +1283,7 @@ public class ErrorCode {
* ALTER TABLE TEST DROP CONSTRAINT UID; * ALTER TABLE TEST DROP CONSTRAINT UID;
* </pre> * </pre>
*/ */
public static final int INDEX_BELONGS_TO_CONSTRAINT_1 = 90085; public static final int INDEX_BELONGS_TO_CONSTRAINT_2 = 90085;
/** /**
* The error with code <code>90086</code> is thrown when * The error with code <code>90086</code> is thrown when
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论