From 13fab5b3ad6a9b1de1906f3732f3b9e264dff77a Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Wed, 26 Jan 2005 08:25:46 +0000 Subject: [PATCH] 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. --- contrib/fuzzystrmatch/fuzzystrmatch.sql.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);