Updated on 2025-06-07 GMT+08:00

U0400046: GaussDB (M-compatible mode) does not support storage functions

Description

Database Type and Version

  • Source database type and version: MySQL 5.5, 5.6, 5.7, and 8.0
  • Target database type and version: GaussDB (M-compatible mode)

Syntax Example

GaussDB (M-compatible mode) does not support storage functions, for example:

CREATE FUNCTION multiply_numbers(a INT, b INT)
RETURNS INT
DETERMINISTIC
BEGIN
    DECLARE result INT;
    SET result = a * b;
    RETURN result;
END;

UGO retains the input without any conversion and displays an error message.

Suggestion

No solution is available. You are advised to refactor application code.