From: Neil Conway Date: Wed, 26 Jan 2005 08:10:08 +0000 (+0000) Subject: Mark the text_soundex() function as "strict", to avoid crashing on NULL X-Git-Tag: REL7_4_7~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db78e53fac8251f446d1ecf49c8c81c240c1381e;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 c548b8ba9f2..36f0a06d445 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in +++ b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in @@ -17,4 +17,4 @@ LANGUAGE 'C' WITH (iscachable, isstrict); CREATE FUNCTION text_soundex(text) RETURNS text AS 'MODULE_PATHNAME', 'soundex' -LANGUAGE 'C'; +LANGUAGE 'C' WITH (iscachable, isstrict);