Answer the question
In order to leave comments, you need to log in
Why doesn't this function compile?
I'm using the community version of DBeaver and there might be a bug with it.
I'm trying to create a function:
CREATE OR REPLACE FUNCTION dao_subject.get_salt_by_contacts_s(p_props json)
RETURNS varchar
LANGUAGE plpgsql
AS $function$
DECLARE
l_result varchar;
l_email TEXT := p_props ->> 'email';
l_mobile_phone TEXT := p_props ->> 'mobilePhone';
BEGIN
SELECT s.password_salt INTO l_result FROM dao_subject.subject s
WHERE s.email = l_email
OR s.mobile_phone = l_mobile_phone;
RETURN l_result;
END;
$function$
;
SQL Error [42601]: Unterminated dollar quote started at position 0 in SQL $function$
;. Expected terminating $$
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question