Commit 0dbf9a6a authored by Bruce Momjian's avatar Bruce Momjian

unaccent: Revert patch 9299f617

The reverted patch to change functions from strict to immutable was
incorrect and needs additional research.
parent fea43768
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
CREATE FUNCTION unaccent(regdictionary, text) CREATE FUNCTION unaccent(regdictionary, text)
RETURNS text RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict' AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C IMMUTABLE STRICT; LANGUAGE C STABLE STRICT;
CREATE FUNCTION unaccent(text) CREATE FUNCTION unaccent(text)
RETURNS text RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict' AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C IMMUTABLE STRICT; LANGUAGE C STABLE STRICT;
CREATE FUNCTION unaccent_init(internal) CREATE FUNCTION unaccent_init(internal)
RETURNS internal RETURNS internal
......
...@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal ...@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal
ALTER EXTENSION unaccent ADD text search template unaccent; ALTER EXTENSION unaccent ADD text search template unaccent;
ALTER EXTENSION unaccent ADD text search dictionary unaccent; ALTER EXTENSION unaccent ADD text search dictionary unaccent;
-- These functions were marked as stable in 9.1; they were now marked as immutable -- These functions are marked as stable in 9.1, were not before:
ALTER FUNCTION unaccent(regdictionary, text) IMMUTABLE; ALTER FUNCTION unaccent(regdictionary, text) STABLE;
ALTER FUNCTION unaccent(text) IMMUTABLE; ALTER FUNCTION unaccent(text) STABLE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment