GAUSS-00961 – GAUSS-00970

    SQLSTATE: 42809

    错误原因:源数据类型不能为pseudo类型。

    解决办法:检查要创建的CAST,确保源数据类型不是pseudo类型。

    GAUSS-00963: “target data type %s is a pseudo-type”

    SQLSTATE: 42809

    错误原因:目标数据类型不能为pseudo类型。

    解决办法:检查要创建的CAST,确保目标数据类型不是pseudo类型。

    GAUSS-00964: “must be owner of type %s or type %s”

    SQLSTATE: 42501

    错误原因:必须是源类型和目标类型的所有者。

    解决办法:检查SQL语句,确保是源类型和目标类型的所有者。

    SQLSTATE: 42P17

    错误原因:CAST函数必须指定1到3个参数。

    解决办法:检查CAST函数,确保有1到3个参数。

    GAUSS-00966: “argument of cast function must match or be binary-coercible from source data type”

    SQLSTATE: 42P17

    错误原因:CAST函数的参数必须和源数据类型匹配或二进制兼容。

    解决办法:检查CAST函数,确保参数和源数据类型匹配或二进制兼容。

    GAUSS-00967: “second argument of cast function must be type integer”

    SQLSTATE: 42P17

    错误原因:CAST函数的第2个参数必须是整数类型。

    解决办法:检查CAST函数,确保第2个参数是整数类型。

    SQLSTATE: 42P17

    错误原因:CAST函数的第3个参数必须是布尔类型。

    解决办法:检查CAST函数,确保第3个参数是布尔类型。

    GAUSS-00969: “return data type of cast function must match or be binary-coercible to target data type”

    SQLSTATE: 42P17

    错误原因:return data type of cast function must match or be binary-coercible to target data typeCAST函数的返回数据类型必须和目标数据类型匹配或二进制兼容。

    解决办法:check the CAST function and make sure that return data type of cast function match or be binary-coercible to target data type检查CAST函数,确保返回数据类型和目标数据类型匹配或二进制兼容。

    GAUSS-00970: “cast function must not be volatile”

    SQLSTATE: 42P17

    错误原因:cast function must not be volatileCAST函数的属性不能是volatile的。

    解决办法:check the CAST function and make sure that cast function not be volatile检查CAST函数,确保它的属性不是volatile的。