Hello,
I am trying to write my first function in HeidiSQL 9.3.0.4984 in a postgres db.
Below is the top part of my function that I created using the GUI inputs. Below it have a long function with many IF THENs.
However, when I press save I receive this message: ERROR: syntax error at or near "DETERMINISTIC" LINE 4: NOT DTERMINISTIC
Do you know what's causing this error?
Thanks!
CREATE FUNCTION "getDate"("ss" TEXT, "it" INTEGER, "lt" TEXT, "sd" DATE) RETURNS DATE LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT E'' $$