mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-03-15 08:36:56 +08: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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user