Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0dbf9a6

Browse files
committed
unaccent: Revert patch 9299f61
The reverted patch to change functions from strict to immutable was incorrect and needs additional research.
1 parent fea4376 commit 0dbf9a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contrib/unaccent/unaccent--1.0.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
CREATE FUNCTION unaccent(regdictionary, text)
77
RETURNS text
88
AS 'MODULE_PATHNAME', 'unaccent_dict'
9-
LANGUAGE C IMMUTABLE STRICT;
9+
LANGUAGE C STABLE STRICT;
1010

1111
CREATE FUNCTION unaccent(text)
1212
RETURNS text
1313
AS 'MODULE_PATHNAME', 'unaccent_dict'
14-
LANGUAGE C IMMUTABLE STRICT;
14+
LANGUAGE C STABLE STRICT;
1515

1616
CREATE FUNCTION unaccent_init(internal)
1717
RETURNS internal

contrib/unaccent/unaccent--unpackaged--1.0.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal
1010
ALTER EXTENSION unaccent ADD text search template unaccent;
1111
ALTER EXTENSION unaccent ADD text search dictionary unaccent;
1212

13-
-- These functions were marked as stable in 9.1; they were now marked as immutable
13+
-- These functions are marked as stable in 9.1, were not before:
1414

15-
ALTER FUNCTION unaccent(regdictionary, text) IMMUTABLE;
16-
ALTER FUNCTION unaccent(text) IMMUTABLE;
15+
ALTER FUNCTION unaccent(regdictionary, text) STABLE;
16+
ALTER FUNCTION unaccent(text) STABLE;

0 commit comments

Comments
 (0)