>
> I'm trying to make a recordset persistent so that it doesn't have to
> repeatedly load the meta-data and type translation code every time a
> page loads. However it appears that the code in Embperl.pm deletes
> recordsets without checking to see whether I've added them to the
> CLEANUP hash. Am I missing something here? Is there a way I can
> avoid doing this every time?
>
You are right Embperl ignores CLEANUP for Recordset obejcts, change line
1334 and 1414 in Embperl.pm to
if (defined (*ENTRY{SCALAR}) && defined (${$glob}) && ref (${$glob}) eq
'DBIx::Recordset' &&
!(defined ($addcleanup -> {$key}) && $addcleanup ->
{$key} == 0))
then it should work. Another solution is to use the TableAttr method to set
filters etc. e.g.
$db -> TableAttr ('tabname', '!PrimKey', 'id') ;
you have to do it only once when you create the database object, and it will
be used by all Recordset objects that get's this database object
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]