mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +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:
parent
6508bf5254
commit
db78e53fac
@ -17,4 +17,4 @@ LANGUAGE 'C' WITH (iscachable, isstrict);
|
|||||||
|
|
||||||
CREATE FUNCTION text_soundex(text) RETURNS text
|
CREATE FUNCTION text_soundex(text) RETURNS text
|
||||||
AS 'MODULE_PATHNAME', 'soundex'
|
AS 'MODULE_PATHNAME', 'soundex'
|
||||||
LANGUAGE 'C';
|
LANGUAGE 'C' WITH (iscachable, isstrict);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user