]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Mark the text_soundex() function as "strict", to avoid crashing on NULL
authorNeil Conway <neilc@samurai.com>
Wed, 26 Jan 2005 08:08:04 +0000 (08:08 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 26 Jan 2005 08:08:04 +0000 (08:08 +0000)
input. Also, may as well mark it "cacheable" as well. From Kris Jurka.

contrib/fuzzystrmatch/fuzzystrmatch.sql.in

index 07e6dce7e3304c21b7dda7ad2989b5a18689d8c9..6adb80481ed5f8cefb14cfec48684c3aec0b3429 100644 (file)
@@ -17,7 +17,7 @@ LANGUAGE 'C' WITH (iscachable, isstrict);
 
 CREATE FUNCTION text_soundex(text) RETURNS text
 AS 'MODULE_PATHNAME', 'soundex'
-LANGUAGE 'C';
+LANGUAGE 'C' WITH (iscachable, isstrict);
 
 CREATE FUNCTION dmetaphone (text) RETURNS text 
 LANGUAGE C IMMUTABLE STRICT