Updated on 2024-03-15 GMT+08:00

GAUSS-00031 -- GAUSS-00040

GAUSS-00031: "argument declared 'anyarray' is not an array but type %s"

SQLSTATE: 42804

Description: The type of the declared parameter is inconsistent with that of the input parameter.

Solution: Use an input parameter of the same type as the declared parameter.

GAUSS-00032: "argument declared 'anyarray' is not consistent with argument declared 'anyelement'"

SQLSTATE: 42804

Description: The array type defined for the ANY predicate does not match the types of elements in the array.

Solution: Ensure that the ANY array type defined in the query statement and types of elements in the array are correct.

GAUSS-00033: "argument declared 'anyrange' is not a range but type %s"

SQLSTATE: 42804

Description: The range type defined for the ANY predicate does not match the types of elements in the ANY array.

Solution: Ensure that the ANY range type defined in the query statement and types of elements in the array are correct.

GAUSS-00034: "argument declared 'anyrange' is not consistent with argument declared 'anyelement'"

SQLSTATE: 42804

Description: The parameter type is different from the declared parameter type.

Solution: Use a parameter of the declared type.

GAUSS-00035: "could not determine polymorphic type because input has type 'unknown'"

SQLSTATE: 42804

Description: Array element types cannot be identified.

Solution: Ensure that the array element types in the ANY predicate are correct.

GAUSS-00036: "type matched to anynonarray is an array type: %s"

SQLSTATE: 42804

Description: The required type is not array.

Solution: Internal system error. Contact technical support.

GAUSS-00037: "type matched to anyenum is not an enum type: %s"

SQLSTATE: 42804

Description: The required type is ENUM.

Solution: Ensure that an ENUM-type value is used for the parameter of the ANYENUM type.

GAUSS-00038: "could not find range type for data type %s"

SQLSTATE: 42704

Description: The declared array type is range, but the input value is not of the range type.

Solution: Assign a value of the defined type to the array.

GAUSS-00039: "could not determine polymorphic type because context isn't polymorphic"

SQLSTATE: XX000

Description: Internal system error.

Solution: Contact technical support.

GAUSS-00040: "unrecognized castcontext: %d"

SQLSTATE: XX000

Description: Internal system error.

Solution: Contact technical support.