diff --git a/contrib/babelfishpg_tsql/src/backend_parser/gram-tsql-rule.y b/contrib/babelfishpg_tsql/src/backend_parser/gram-tsql-rule.y index b6b159710e3..692917672ed 100644 --- a/contrib/babelfishpg_tsql/src/backend_parser/gram-tsql-rule.y +++ b/contrib/babelfishpg_tsql/src/backend_parser/gram-tsql-rule.y @@ -2019,7 +2019,7 @@ func_expr_common_subexpr: { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("IDENTITY() is not currently supported in Babelfish. please use babelfishpg_tsql.escape_hatch_identity_function to ignore"), + errmsg("To use IDENTITY(), set \'babelfishpg_tsql.escape_hatch_identity_function\' to \'ignore\'"), parser_errposition(@1))); } } @@ -2033,7 +2033,7 @@ func_expr_common_subexpr: { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("IDENTITY() is not currently supported in Babelfish. please use babelfishpg_tsql.escape_hatch_identity_function to ignore"), + errmsg("To use IDENTITY(), set \'babelfishpg_tsql.escape_hatch_identity_function\' to \'ignore\'"), parser_errposition(@1))); } @@ -2048,7 +2048,7 @@ func_expr_common_subexpr: { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("IDENTITY() is not currently supported in Babelfish. please use babelfishpg_tsql.escape_hatch_identity_function to ignore"), + errmsg("To use IDENTITY(), set \'babelfishpg_tsql.escape_hatch_identity_function\' to \'ignore\'"), parser_errposition(@1))); } } diff --git a/test/JDBC/expected/BABEL_539-vu-verify.out b/test/JDBC/expected/BABEL_539-vu-verify.out index 04e0a19a919..4a610b1ac52 100644 --- a/test/JDBC/expected/BABEL_539-vu-verify.out +++ b/test/JDBC/expected/BABEL_539-vu-verify.out @@ -2,7 +2,7 @@ EXEC babel_539_prepare_proc GO ~~ERROR (Code: 33557097)~~ -~~ERROR (Message: IDENTITY() is not currently supported in Babelfish. please use babelfishpg_tsql.escape_hatch_identity_function to ignore)~~ +~~ERROR (Message: To use IDENTITY(), set 'babelfishpg_tsql.escape_hatch_identity_function' to 'ignore')~~ SELECT current_setting('babelfishpg_tsql.escape_hatch_identity_function');