|
From: Chris W. <ch...@cw...> - 2003-04-09 21:27:02
|
Nick Sutterer wrote: > ... > the problem is that everytime you create a new object from one of the > SPOPS classes, a new db handle is created, because the connect part in > the global_datasource_handle() method is executed. is there a way to save > this execution and have *one* db handle for all objects? i don't know a > way to pass a dbh reference to the newly created objects, i'd have to > override the SPOPS class creation mechanism. has anyone code for this yet? That isn't supposed to happen. The whole idea behind placing global_datasource_handle() in a parent class is that they all use the same database handle. I'll try to take a look at it this evening. Thanks, Chris |