From: Neil Conway Date: Wed, 26 Jan 2005 08:25:46 +0000 (+0000) Subject: Mark the text_soundex() function as "strict", to avoid crashing on NULL X-Git-Tag: REL7_2_7~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13fab5b3ad6a9b1de1906f3732f3b9e264dff77a;p=thirdparty%2Fpostgresql.git Mark the text_soundex() function as "strict", to avoid crashing on NULL input. Also, may as well mark it "cacheable" as well. From Kris Jurka. --- diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in index b02f1b28ebc..004711f62e7 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in +++ b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in @@ -8,4 +8,4 @@ CREATE FUNCTION soundex(text) RETURNS text AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c' with (iscachable, isstrict); CREATE FUNCTION text_soundex(text) RETURNS text - AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c'; + AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c' with (iscachable, isstrict);