Mark test_enc_conversion() as STRICT.

Reported-by: Jaime Casanova, using SQLsmith
Discussion: https://www.postgresql.org/message-id/20210402235337.GA4082@ahch-to
This commit is contained in:
Heikki Linnakangas 2021-04-06 14:53:56 +03:00
parent 6b258e3d68
commit c4c393b3ec
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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'';';