- 错误码参考
- SQL标准错误码说明
- 第三方库错误码说明
- GAUSS-00001 -- GAUSS-00100
- GAUSS-00101 -- GAUSS-00200
- GAUSS-00201 -- GAUSS-00300
- GAUSS-00301 -- GAUSS-00400
- GAUSS-00401 -- GAUSS-00500
- GAUSS-00501 -- GAUSS-00600
- GAUSS-00601 -- GAUSS-00700
- GAUSS-00701 -- GAUSS-00800
- GAUSS-00801 -- GAUSS-00900
- GAUSS-00901 -- GAUSS-01000
- GAUSS-01001 -- GAUSS-01100
- GAUSS-01101 -- GAUSS-01200
- GAUSS-01201 -- GAUSS-01300
- GAUSS-01301 -- GAUSS-01400
- GAUSS-01401 -- GAUSS-01500
- GAUSS-01501 -- GAUSS-01600
- GAUSS-01601 -- GAUSS-01700
- GAUSS-01701 -- GAUSS-01800
- GAUSS-01801 -- GAUSS-01900
- GAUSS-01901 -- GAUSS-02000
- GAUSS-02001 -- GAUSS-02100
- GAUSS-02101 -- GAUSS-02200
- GAUSS-02201 -- GAUSS-02300
- GAUSS-02301 -- GAUSS-02400
- GAUSS-02401 -- GAUSS-02500
- GAUSS-02501 -- GAUSS-02600
- GAUSS-02601 -- GAUSS-02700
- GAUSS-02701 -- GAUSS-02800
- GAUSS-02801 -- GAUSS-02900
- GAUSS-02901 -- GAUSS-03000
- GAUSS-03001 -- GAUSS-03100
- GAUSS-03101 -- GAUSS-03200
- GAUSS-03201 -- GAUSS-03300
- GAUSS-03301 -- GAUSS-03400
- GAUSS-03401 -- GAUSS-03500
- GAUSS-03501 -- GAUSS-03600
- GAUSS-03601 -- GAUSS-03700
- GAUSS-03701 -- GAUSS-03800
- GAUSS-03801 -- GAUSS-03900
- GAUSS-03901 -- GAUSS-04000
- GAUSS-04001 -- GAUSS-04100
- GAUSS-04101 -- GAUSS-04200
- GAUSS-04201 -- GAUSS-04300
- GAUSS-04301 -- GAUSS-04400
- GAUSS-04401 -- GAUSS-04500
- GAUSS-04501 -- GAUSS-04600
- GAUSS-04601 -- GAUSS-04700
- GAUSS-04701 -- GAUSS-04800
- GAUSS-04901 -- GAUSS-04999
- GAUSS-05101 -- GAUSS-05200
- GAUSS-05801 -- GAUSS-05900
- GAUSS-05901 -- GAUSS-05999
- GAUSS-06101 -- GAUSS-06200
- GAUSS-50000 -- GAUSS-50999
- GAUSS-51000 -- GAUSS-51999
- GAUSS-52000 -- GAUSS-52999
- GAUSS-53000 -- GAUSS-53999
GAUSS-00001 -- GAUSS-00010
链接复制成功!
GAUSS-00001: "operator does not exist: %s"
SQLSTATE: 42883
错误原因:所指定使用的操作符不存在。
解决办法:建议错误信息中包含操作符所涉及的类型,以便在系统表中查询是否存在相关的操作符。
GAUSS-00002: "could not identify an ordering operator for type %s"
SQLSTATE: 42883
错误原因:对于需要进行sort/group操作时,需要进行排序,如果涉及类型的大于或小于操作符不存在,就会报这个错。
解决办法:此错误信息包含数据类型,使用之前可以在pg_operator系统表中查询,确保操作符存在。
GAUSS-00003: "could not identify an equality operator for type %s"
SQLSTATE: 42883
错误原因:在进行group、unique类似操作时,如果涉及等于操作,但是涉及类型的操作符不存在,就会报这个错。
解决办法:此错误信息包含数据类型,使用之前可以在pg_operator系统表中查询,确保操作符存在。
GAUSS-00004: "operator requires run-time type coercion: %s"
SQLSTATE: 42883
错误原因:使用order by using语句指定使用某个操作符,在运行中,会去校验所给类型和操作符之间是否兼容,不兼容即报错。
解决办法:确保使用时指定的操作符和类型之间是兼容的。
GAUSS-00005: "operator is not unique: %s"
SQLSTATE: 42725
错误原因:对于一些类型,没有明确的操作符,在使用中要通过类型转换来寻找合适的操作符,当相关的类型转换涉及多个时就会报错。
解决办法:对于没有操作符的类型,可以使用类型转换指定其使用某个操作符。
GAUSS-00006: "operator is only a shell: %s"
SQLSTATE: 42883
错误原因:未定义的函数。
解决办法:用户检查输入语句。
GAUSS-00007: "op ANY/ALL (array) requires array on right side"
SQLSTATE: 42809
错误原因:对于ANY/ALL (array)操作符,右参数不是数组类型。
解决办法:对于ANY/ALL (array)操作符,右参数请使用数组类型。
GAUSS-00008: "op ANY/ALL (array) requires operator to yield boolean"
SQLSTATE: 42809
错误原因:对于ANY/ALL (array)操作符,返回值的类型不是布尔类型。
解决办法:对于ANY/ALL (array)操作符,返回值的类型请使用布尔类型。
GAUSS-00009: "op ANY/ALL (array) requires operator not to return a set"
SQLSTATE: 42809
错误原因:对于ANY/ALL (array)操作符,返回值的类型使用了不支持的集合类型。
解决办法:对于ANY/ALL (array)操作符,返回值的类型请不要使用集合类型。
GAUSS-00010: "could not find array type for data type %s"
SQLSTATE: 42704
错误原因:对于某个类型,找不到其对应的数组类型,则报错。
解决办法:如果要使用类型对应的数组类型,可查询pg_type系统表看其是否有对应的或这个兼容的数组类型。
