Transaction inside of functions
Transaction inside of functions
От:
"A B" <gentosaker@gmail.com>
Дата:
Is it not possible to define transactions inside of a function?
I guess you can do
BEGIN WORK;
select my_function()
COMMIT;
instead of defining the function
CREATE FUNCTION my_function()...
BEGIN
BEGIN WORK;
....
COMMIT;
END;
but what if you would like to do
CREATE FUNCTION my_function()...
BEGIN
.... do stuff.....
BEGIN WORK;
....
COMMIT;
do more stuff ....
END;
Re: Transaction inside of functions
От:
"A. Kretschmer" <andreas.kretschmer@schollglas.com>
Дата:
am Thu, dem 15.05.2008, um 15:32:57 +0200 mailte A B folgendes: > Is it not possible to define transactions inside of a function? No. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net