Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9299f61

Browse files
committed
unaccent: mark unaccent() functions as immutable
Suggestion from Pavel Stehule
1 parentee1e566 commit9299f61

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
CREATEFUNCTIONunaccent(regdictionary,text)
77
RETURNStext
88
AS'MODULE_PATHNAME','unaccent_dict'
9-
LANGUAGE CSTABLE STRICT;
9+
LANGUAGE CIMMUTABLE STRICT;
1010

1111
CREATEFUNCTIONunaccent(text)
1212
RETURNStext
1313
AS'MODULE_PATHNAME','unaccent_dict'
14-
LANGUAGE CSTABLE STRICT;
14+
LANGUAGE CIMMUTABLE STRICT;
1515

1616
CREATEFUNCTIONunaccent_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 ADDtext search template unaccent;
1111
ALTER EXTENSION unaccent ADDtext search dictionary unaccent;
1212

13-
-- These functionsare marked as stable in 9.1,werenot before:
13+
-- These functionswere marked as stable in 9.1; theywerenow marked as immutable
1414

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp