From: Neil Conway Date: Wed, 26 Jan 2005 08:08:04 +0000 (+0000) Subject: Mark the text_soundex() function as "strict", to avoid crashing on NULL X-Git-Tag: REL8_0_1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ea9892c99843e1b210ae3bbd91fbb702e6dd3ac;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 07e6dce7e33..6adb80481ed 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in +++ b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in @@ -17,7 +17,7 @@ LANGUAGE 'C' WITH (iscachable, isstrict); CREATE FUNCTION text_soundex(text) RETURNS text AS 'MODULE_PATHNAME', 'soundex' -LANGUAGE 'C'; +LANGUAGE 'C' WITH (iscachable, isstrict); CREATE FUNCTION dmetaphone (text) RETURNS text LANGUAGE C IMMUTABLE STRICT