Search Postgresql Archives

composite type and assignment in plpgsql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



what's wrong with this?

create type tSession
	as ( ty_found boolean, ty_Session char(32) );

create or replace function GetSessionID( integer )
	returns tSession as '
declare
	thisSession tSession;
begin
	--HERE!!!
	thisSession := ( ''t'', md5( now( ) || rand( ) ) );
	return thisSession;
end;
' language plpgsql;


thx


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux