1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

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:08:04 +00:00
parent 6f28c7763e
commit 9ea9892c99

View 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