>>>>> "Franco" == Franco Bagnoli <[EMAIL PROTECTED]> writes:

Franco> In order to use DBD::AnyData with the DBI plugin i think that it is 
Franco> necessary to add the func method to the plugin:

Franco> sub func {
Franco>     my $self = shift;

Franco>     $self->dbh->func(@_) ;
    
Franco>     return '';
Franco> }


This seems to work fine without a patch:

    [%
      USE d = DBI(database = "dbi:AnyData:null", user = "", password = "");
      d.dbh.func("users", "Passwd", "/etc/passwd", "ad_catalog");
      FOREACH user = d.query("SELECT username, homedir, GID FROM users");
        user.username; " has homedir of "; user.homedir;
        " and GID of "; user.GID; "\n";
      END;
    %]

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to