Subject | Re: [ib-support] more questions on use of generators |
---|---|
Author | Matteo Giacomazzi |
Post date | 2002-11-11T21:50:12Z |
Hi Jon,
Monday, November 11, 2002, you wrote:
JP> Or is there a way to use the before insert trigger method and
JP> still be able to get the last generated value reliably even in a
JP> multi-user environment?
I guess that a Stored Procedure that, after inserting the record,
returns the ID, would be more elegant than coding it directly in
Python. So you won't be coerced to rewrite the same code any time you
need to perform the same task with different languages.
Kind regards,
--
Matteo
mailto:matteo.giacomazzi@...
ICQ# 24075529
Monday, November 11, 2002, you wrote:
JP> Or is there a way to use the before insert trigger method and
JP> still be able to get the last generated value reliably even in a
JP> multi-user environment?
I guess that a Stored Procedure that, after inserting the record,
returns the ID, would be more elegant than coding it directly in
Python. So you won't be coerced to rewrite the same code any time you
need to perform the same task with different languages.
Kind regards,
--
Matteo
mailto:matteo.giacomazzi@...
ICQ# 24075529