]> 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:10:08 +0000 (08:10 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 26 Jan 2005 08:10:08 +0000 (08:10 +0000)
input. Also, may as well mark it "cacheable" as well. From Kris Jurka.

contrib/fuzzystrmatch/fuzzystrmatch.sql.in

index c548b8ba9f28c0c2941451c9f0decc92a9d455dd..36f0a06d445842e9215b555611e18282f190b74f 100644 (file)
@@ -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);