Nested db-objects
Sigurd Nes <[email protected]>
| Newsgroups | gmane.comp.web.phpgroupware.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I find it very useful to have the ability to have the choice of using nested db-objects. Example: When integrating with external systems - it is very convenient to start a transaction on system 1 - do some work (like sync) on system 2 - and if things went well do a commit on the result in system 1. To make this work there is a need for two tiny changes in the class.db.inc.php: 1) on line 133 in the function __clone(): change $this->new_adodb(); to $this->adodb = clone($this->adodb); 2) Also the new function __destruct() - which do a disconnect has to be commented How about it? Regards Sigurd