RE: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-29 Thread Svein Erling Tysvær
Hi guys, I have a simple stored procedure to update data, like this : SET TERM ^ ; CREATE PROCEDURE REG  AS BEGIN     UPDATE table a set a.field1 = '123';     exit; END^ SET TERM ; ^ When I run that procedure on flamerobin with this command: execute procedure Reg. It runs ok, but without a

Re: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-29 Thread Helen Borrie
At 05:23 p.m. 29/04/2014, trsk...@yahoo.com wrote: When I run that procedure on flamerobin with this command: execute procedure Reg. It runs ok, but without a commit command, the field1 on table won't get update. I rarely use store procedure to do update / insert / delete, but is this a

Re: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-29 Thread Mark Rotteveel
On 28 Apr 2014 22:23:43 -0700, trsk...@yahoo.com wrote: I have a simple stored procedure to update data, like this : SET TERM ^ ; CREATE PROCEDURE REG AS BEGIN UPDATE table a set a.field1 = '123'; exit; END^ SET TERM ; ^ There is no need for a EXIT statement in this

Re: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-29 Thread trskopo
Yes, I needed it, thanks for your answer. Regards, Anto

[firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-28 Thread trskopo
Hi guys, I have a simple stored procedure to update data, like this : SET TERM ^ ; CREATE PROCEDURE REG AS BEGIN UPDATE table a set a.field1 = '123'; exit; END^ SET TERM ; ^ When I run that procedure on flamerobin with this command: execute procedure Reg. It runs

Re: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-28 Thread Josef Kokeš
Hi guys, I have a simple stored procedure to update data, like this : SET TERM ^ ; CREATE PROCEDURE REG AS BEGIN UPDATE table a set a.field1 = '123'; exit; END^ SET TERM ; ^ When I run that procedure on flamerobin with this command: execute procedure Reg. It runs

Re: [firebird-support] Store Procedure for updating data, why it is need to commit?

2014-04-28 Thread trskopo
Hi, Thanks for your replied. Tried to use execute STATEMENT 'COMMIT', raised and error Explicit transaction control is not allowed