On Saturday, April 23, 2011 3:54:05 pm Elliott Prechter wrote:
> I have a function which looks like this:
>
> ...
> declare _object bigint;
> begin
> set _object = insert into object (object_type,name) values
> ('type1','test object');
> insert into ref (object,refname) values (_object,'test object reference');
> end;
> ...
>
> However I get a syntax error on the line 'set _object = insert ....'
>
> I searched through the docs but don't know what I'm doing wrong.
What are you trying to set _object to, the id value of the inserted row?
>
> Thanks!
> Elliott
--
Adrian Klaver
adrian.klaver@gmail.com