更新时间:2023-12-11 GMT+08:00
分享

GAUSS-00091 -- GAUSS-00100

GAUSS-00091: "IS DISTINCT FROM requires = operator to yield boolean"

SQLSTATE: 42804

错误原因:IS DISTINCT FROM语句中,去重时使用的操作符返回值不是布尔类型。

解决办法:IS DISTINCT FROM语句中,去重时的操作符返回值请使用布尔类型。

GAUSS-00092: "collation mismatch between implicit collations '%s' and '%s'"

SQLSTATE: 42P21

错误原因:两个字符集不能进行隐式转换。

解决办法:字符集转换时要保证两者之间是兼容的。

示例:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
postgres=# create table t1(a text collate "C");
NOTICE:  The 'DISTRIBUTE BY' clause is not specified. Using round-robin as the distribution mode by default.
HINT:  Please use 'DISTRIBUTE BY' clause to specify suitable data distribution column.
CREATE TABLE
postgres=# create table t2(a text collate "POSIX");
NOTICE:  The 'DISTRIBUTE BY' clause is not specified. Using round-robin as the distribution mode by default.
HINT:  Please use 'DISTRIBUTE BY' clause to specify suitable data distribution column.
CREATE TABLE
postgres=# select * from t1 union select * from t2;
ERROR:  collation mismatch between implicit collations "C" and "POSIX"
LINE 1: select * from t1 union select * from t2;

GAUSS-00093: "collation mismatch between explicit collations '%s' and '%s'"

SQLSTATE: 42P21

错误原因:两个字符集不能进行显示转换。

解决办法:字符集转换时要保证两者之间是兼容的。

示例:

1
2
3
postgres=# select * from t1 where a collate "C" > 'abc' collate "POSIX";
ERROR:  collation mismatch between explicit collations "C" and "POSIX"
LINE 1: select * from t1 where a collate "C" > 'abc' collate "POSIX"...

GAUSS-00094: "table reference '%s' is ambiguous"

SQLSTATE: 42P09

错误原因:引用表时由于重复的表名导致引用模糊。

解决办法:引用时请明确指定表名。

GAUSS-00095: "table reference %u is ambiguous"

SQLSTATE: 42P09

错误原因:引用表时由于重复的表名导致引用模糊。

解决办法:引用时请明确指定表名。

GAUSS-00096: "table name '%s' specified more than once"

SQLSTATE: 42712

错误原因:from语句中同一个表名未使用别名时多次使用。

解决办法:from语句中要多次使用同一个表,需要指定别名。

GAUSS-00097: "RTE not found (internal error)"

SQLSTATE: XX000

错误原因:系统内部错误。

解决办法:请联系技术支持工程师提供技术支持。

GAUSS-00098: "bad levelsup for CTE '%s'"

SQLSTATE: XX000

错误原因:系统内部错误。

解决办法:请联系技术支持工程师提供技术支持。

GAUSS-00099: "could not find CTE '%s'"

SQLSTATE: XX000

错误原因:系统内部错误。

解决办法:请联系技术支持工程师提供技术支持。

GAUSS-00100: "could not find JoinExpr for whole-row reference"

SQLSTATE: XX000

错误原因:系统内部错误。

解决办法:请联系技术支持工程师提供技术支持。

分享:

    相关文档

    相关产品