File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * ------------------------------------
3
+ * NOTE: This test behaves differenly
4
+ * ------------------------------------
5
+ *
6
+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7
+ * is more detailed.
8
+ *
9
+ * security.out - test output for PostgreSQL (<18)
10
+ * security_1.out - test output for PostgreSQL (>=18)
11
+ *
12
+ */
1
13
-- Check security CVE-2020-14350
2
14
CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
3
15
CREATE EXTENSION rum;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * ------------------------------------
3
+ * NOTE: This test behaves differenly
4
+ * ------------------------------------
5
+ *
6
+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7
+ * is more detailed.
8
+ *
9
+ * security.out - test output for PostgreSQL (<18)
10
+ * security_1.out - test output for PostgreSQL (>=18)
11
+ *
12
+ */
13
+ -- Check security CVE-2020-14350
14
+ CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
15
+ CREATE EXTENSION rum;
16
+ ERROR: function "rum_anyarray_similar" already exists with same argument types
17
+ CONTEXT: SQL statement "CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray)
18
+ RETURNS bool
19
+ AS '$libdir/rum'
20
+ LANGUAGE C STRICT STABLE"
21
+ extension script file "rum--1.3.sql", near line 1530
22
+ DROP FUNCTION rum_anyarray_similar(anyarray,anyarray);
Original file line number Diff line number Diff line change
1
+ /*
2
+ * ------------------------------------
3
+ * NOTE: This test behaves differenly
4
+ * ------------------------------------
5
+ *
6
+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7
+ * is more detailed.
8
+ *
9
+ * security.out - test output for PostgreSQL (<18)
10
+ * security_1.out - test output for PostgreSQL (>=18)
11
+ *
12
+ */
13
+
1
14
-- Check security CVE-2020-14350
2
15
CREATE FUNCTION rum_anyarray_similar (anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
3
16
CREATE EXTENSION rum;
You can’t perform that action at this time.
0 commit comments