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-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=c40f9906ff7127bc34885ae984e7645fc925cda0;p=users%2Fbernd%2Fpostgres.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 c548b8ba9f..36f0a06d44 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);