Subject | RE: [firebird-php] SPs Docs |
---|---|
Author | Nigel Weeks |
Post date | 2004-11-17T04:22:10Z |
Yes, normal usage is a single transaction, but it's not always the case.
The other problem is that the 'Firebird Elite' have frowned upon
the practice of using a 'Selectable Procedure' to do both:
A DML operation (Insert/Update/Delete), and
A return of a record set(via the suspend)
Sure, it's possible, and I like using Procs in this way A LOT!!, but I've
heard
it's just not the right way to do it...
It's been recommended that the following should be adhered to:
'Execute Procedures' should be used for DML ops (Ins/Upd/Del), and
'Selectable Procs' should only be used for returning datasets, fancy
queries, etc.
-> No data changes.
I dunno yet, I can't think of a better way:
There's a six-pack of Cascade Beer for anyone who can solve it!
Summary of Challenge: Insert a row, and return the new generator-seeded ID
in ONE COMMAND/ONE QUERY from PHP, without using a selectable stored
procedure to do it...
Nige.
The other problem is that the 'Firebird Elite' have frowned upon
the practice of using a 'Selectable Procedure' to do both:
A DML operation (Insert/Update/Delete), and
A return of a record set(via the suspend)
Sure, it's possible, and I like using Procs in this way A LOT!!, but I've
heard
it's just not the right way to do it...
It's been recommended that the following should be adhered to:
'Execute Procedures' should be used for DML ops (Ins/Upd/Del), and
'Selectable Procs' should only be used for returning datasets, fancy
queries, etc.
-> No data changes.
I dunno yet, I can't think of a better way:
There's a six-pack of Cascade Beer for anyone who can solve it!
Summary of Challenge: Insert a row, and return the new generator-seeded ID
in ONE COMMAND/ONE QUERY from PHP, without using a selectable stored
procedure to do it...
Nige.