Mark test_enc_conversion() as STRICT.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 6 Apr 2021 11:53:56 +0000 (14:53 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 6 Apr 2021 11:53:56 +0000 (14:53 +0300)
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
src/test/regress/output/create_function_1.source

index 6ba37fe63b617d7cc2dc26ac2f54682d57b4bc60..6c69b7fe6cbbf13a5bff1c121c74a98b4fac8d36 100644 (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:
 
index cb38a039bf4636643dbe7fc8a2e38183a8349a41..c66146db9d53ea6b4db467505987fe1d883dcf31 100644 (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'';';