GAUSS-01021 -- GAUSS-01030

GAUSS-01021: “unrecognized constraint subtype: %d”

SQLSTATE: XX000

错误原因:constraint的类型非法。

解决办法:请检查SQL语句中定义的约束类型是否正确。

GAUSS-01022: “%s is not an enum”

SQLSTATE: 42809

错误原因:此对象不是一个枚举。

解决办法:检查SQL语句,确保操作对象是一个枚举。

GAUSS-01024: “type attribute 'subtype' is required”

SQLSTATE: 42601

错误原因:没有指定类型的“subtype”属性。

解决办法:检查sql语句,添加subtype。

GAUSS-01025: “range subtype cannot be %s”

SQLSTATE: 42804

错误原因:不能是伪类型。

解决办法:检查sql语句,确保range subtype不是伪类型。

GAUSS-01026: “range collation specified but subtype does not support collation”

SQLSTATE: 42809

错误原因:指定了range collation但是subtype不支持collation。

解决办法:检查sql语句,如指定了collation,则subtype必须支持collation.。

GAUSS-01027: “typmod_in function %s must return type 'integer'”

SQLSTATE: 42P17

错误原因:typmod_in函数必须返回integer类型。

解决办法:检查tymod_in函数,确保返回类型是integer类型。

GAUSS-01028: “typmod_out function %s must return type 'cstring'”

SQLSTATE: 42P17

错误原因:typmod_out函数必须返回cstring类型。

解决办法:检查tymod_out函数,确保返回类型是cstring类型。

GAUSS-01029: “type analyze function %s must return type 'Boolean'”

SQLSTATE: 42P17

错误原因:类型的analyze函数必须返回Boolean类型。

解决办法:检查analyze函数,确保返回类型是Boolean类型的。

GAUSS-01030: “operator class '%s' does not accept data type %s”

SQLSTATE: 42804

错误原因:operator class不支持此数据类型。

解决办法:检查sql语句,确保subtype类型和operator class相匹配。

意见反馈
编组 3备份
openGauss 2024-03-19 00:49:40
取消