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