From c4c393b3ec83ceb4b4d7f37cdd5302126377d069 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 6 Apr 2021 14:53:56 +0300 Subject: [PATCH] Mark test_enc_conversion() as STRICT. Reported-by: Jaime Casanova, using SQLsmith Discussion: https://www.postgresql.org/message-id/20210402235337.GA4082@ahch-to --- src/test/regress/input/create_function_1.source | 2 +- src/test/regress/output/create_function_1.source | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/regress/input/create_function_1.source b/src/test/regress/input/create_function_1.source index 6ba37fe63b6..6c69b7fe6cb 100644 --- a/src/test/regress/input/create_function_1.source +++ b/src/test/regress/input/create_function_1.source @@ -80,7 +80,7 @@ CREATE FUNCTION test_opclass_options_func(internal) CREATE FUNCTION test_enc_conversion(bytea, name, name, bool, validlen OUT int, result OUT bytea) AS '@libdir@/regress@DLSUFFIX@', 'test_enc_conversion' - LANGUAGE C; + LANGUAGE C STRICT; -- Things that shouldn't work: diff --git a/src/test/regress/output/create_function_1.source b/src/test/regress/output/create_function_1.source index cb38a039bf4..c66146db9d5 100644 --- a/src/test/regress/output/create_function_1.source +++ b/src/test/regress/output/create_function_1.source @@ -70,7 +70,7 @@ CREATE FUNCTION test_opclass_options_func(internal) LANGUAGE C; CREATE FUNCTION test_enc_conversion(bytea, name, name, bool, validlen OUT int, result OUT bytea) AS '@libdir@/regress@DLSUFFIX@', 'test_enc_conversion' - LANGUAGE C; + LANGUAGE C STRICT; -- Things that shouldn't work: CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL AS 'SELECT ''not an integer'';';