Убрал лишнюю проверку в функции

This commit is contained in:
2024-11-12 14:16:59 +03:00
parent bd1520fd02
commit 99b5d44362
3 changed files with 2 additions and 10 deletions

View File

@@ -4,10 +4,6 @@ create or replace function convert_to_initials(
p_patronymic varchar
) returns varchar as $$
begin
if p_name is null or p_name = '' or p_surname is null or p_surname = '' then
return '';
end if;
if p_patronymic is null or p_patronymic = '' then
return concat(substring(p_name from 1 for 1), '. ', p_surname);
end if;