Mark the text_soundex() function as "strict", to avoid crashing on NULL
authorNeil Conway <neilc@samurai.com>
Wed, 26 Jan 2005 08:25:46 +0000 (08:25 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 26 Jan 2005 08:25:46 +0000 (08:25 +0000)
input. Also, may as well mark it "cacheable" as well. From Kris Jurka.

contrib/fuzzystrmatch/fuzzystrmatch.sql.in

index b02f1b28ebc278456c207566223531b3fc5d8db2..004711f62e7f8808782d45fe1d9d143a6399b2cf 100644 (file)
@@ -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);