Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

Creating Postgres Procedure 2

dinmil's profile image dinmil posted 5 years ago in General Permalink

I think that when you create postgres procedure via heidi program produce incorrect create statement


PRODUCED CODE:


CREATE FUNCTION "Test2"()
RETURNS BIGINT
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY INVOKER
COMMENT E''
BEGIN
  return 1
END



**************************************
CORRECT CODE:
**************************************

CREATE OR REPLACE FUNCTION public.fnctest (
)
RETURNS BIGINT AS
$body$
DECLARE
  variable_name integer;
BEGIN

  return 1;
END;
$body$
LANGUAGE 'plpgsql'
VOLATILE
CALLED ON NULL INPUT
SECURITY INVOKER;

Please login to leave a reply, or register at first.




Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.