Skip to content

Commit 9299f61

Browse files
committed
unaccent: mark unaccent() functions as immutable
Suggestion from Pavel Stehule
1 parent ee1e566 commit 9299f61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contrib/unaccent/unaccent--1.0.sql

Lines changed: 2 additions & 2 deletions
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 STABLE STRICT;
9+
LANGUAGE C IMMUTABLE STRICT;
1010

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

1616
CREATE FUNCTION unaccent_init(internal)
1717
RETURNS internal

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

Lines changed: 3 additions & 3 deletions
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 are marked as stable in 9.1, were not before:
13+
-- These functions were marked as stable in 9.1; they were now marked as immutable
1414

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy