Author: mjevans
Date: Thu May 12 01:54:16 2011
New Revision: 14850

Modified:
   dbi/trunk/Changes
   dbi/trunk/lib/DBI/DBD.pm

Log:
Add pod for default_user


Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes   (original)
+++ dbi/trunk/Changes   Thu May 12 01:54:16 2011
@@ -8,6 +8,7 @@
 
 =head2 Changes in DBI 1.617 (svn rXXX)
 
+  Added pod for default_user to DBI::DBD (Martin J. Evans)
   Fixed ParamTypes example in the pod (Martin J. Evans)
   Fixed the definition of ArrayTupleStatus and remove confusion over
     rows affected in list context of execute_array (Martin J. Evans)

Modified: dbi/trunk/lib/DBI/DBD.pm
==============================================================================
--- dbi/trunk/lib/DBI/DBD.pm    (original)
+++ dbi/trunk/lib/DBI/DBD.pm    Thu May 12 01:54:16 2011
@@ -2642,6 +2642,15 @@
 where I<A_TABLE_NAME> is the name of a table that always exists (such as a
 database system catalogue).
 
+=item $drh->default_user
+
+The default implementation of default_user will get the database
+username and password fields from C<$ENV{DBI_USER}> and
+C<$ENV{DBI_PASS}>. You can override this method. It is called as
+follows:
+
+  ($user, $pass) = $drh->default_user($user, $pass, $attr)
+
 =back
 
 =head1 METADATA METHODS

Reply via email to