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

GAUSS-00041 -- GAUSS-00050

GAUSS-00041: "unrecognized castmethod: %d"

SQLSTATE: XX000

Description: Internal system error.

Solution: Contact technical support.

GAUSS-00042: "cache lookup failed for relation %u"

SQLSTATE: XX000

Description: The relational table for the ALTER TABLE SET TABLESPACE operation does not exist.

Solution: Modify the operation.

GAUSS-00043: "unsafe use of string constant with Unicode escapes"

SQLSTATE: 0A000

Description: When the standard_conforming_strings switch is set to off, the string constant is defined as an escape character of unified codes.

Solution: Check whether the escape string in the input statement is correct. If it is not, use the gsql statement to set the standard_conforming_strings switch to on.

GAUSS-00044: "invalid Unicode escape"

SQLSTATE: 22025

Description: The input statement contains an invalid escape character sequence.

Solution: Check whether a character sequence similar to \uXXXX or \UXXXXXXXXX exists. X indicates a digit (0–9), uppercase letter (A–F), or lowercase letter (a–f).

GAUSS-00045: "unsafe use of \\' in a string literal"

SQLSTATE: 22P06

Description: A string uses an invalid escape character, a backslash (\).

Solution: Correct the invalid escape character (\) used in the SQL syntax.

GAUSS-00046: "%s at end of input"

SQLSTATE: 42601

Description: The syntax of the terminator in the specified statement is incorrect.

Solution: Correct the syntax of the input statement.

GAUSS-00047: "%s at or near '%s'"

SQLSTATE: 42601

Description: The syntax is incorrect or the number of statement recursion layers exceeds 10000 (for example, "memory exhausted at or near'%s'").

Solution: Ensure that syntax of the SQL statements to be executed are correct or rewrite the statements to reduce the recursion layers.

GAUSS-00048: "core_yylex_init() failed: %m"

SQLSTATE: XX000

Description: Internal system error.

Solution: Contact technical support.

GAUSS-00049: "invalid hexadecimal digit"

SQLSTATE: XX000

Description: The input is invalid or the format is not supported.

Solution: Modify the input SQL statement.

GAUSS-00050: "improper %%TYPE reference (too few dotted names): %s"

SQLSTATE: 42601

Description: table_name.column_name%TYPE defined in the function is incorrect. Necessary parameters are absent on the left of .column_name.

Solution: Ensure that .column_name%TYPE defined in the function is correct. Correct the syntax if necessary. Then, create the function again and ensure that the syntax of .column_name%TYPE contains at least the following parameters: database_name, schema_name, and table_name.