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.
This commit is contained in:
Neil Conway 2005-01-26 08:25:46 +00:00
parent ae5b7a0c5b
commit 13fab5b3ad

View File

@ -8,4 +8,4 @@ CREATE FUNCTION soundex(text) RETURNS text
AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c' with (iscachable, isstrict); AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c' with (iscachable, isstrict);
CREATE FUNCTION text_soundex(text) RETURNS text CREATE FUNCTION text_soundex(text) RETURNS text
AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c'; AS 'MODULE_PATHNAME', 'soundex' LANGUAGE 'c' with (iscachable, isstrict);