Author: timbo
Date: Sun Oct 21 15:05:38 2007
New Revision: 10103

Modified:
   dbi/trunk/Changes
   dbi/trunk/lib/DBD/Gofer.pm
   dbi/trunk/t/80proxy.t
   dbi/trunk/t/87gofer_cache.t

Log:
Prep 1.601


Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes   (original)
+++ dbi/trunk/Changes   Sun Oct 21 15:05:38 2007
@@ -28,9 +28,9 @@
     but then gofer server need to reset them to restore dbh to original state
     Or, change the attr in the connect() call, but that risks
     bloating the number of cache dbh in the server.
-Gofer request flags:
-    return current executor stats as an attribute - handy for tests
-    will accept streamed resultsets
+Gofer request flags for:
+    - return current executor stats as an attribute - handy for tests
+    - will accept streamed resultsets
 Add attr-passthru to prepare()? ie for gofer cache control & ReadOnly
 Terminology for client and server ends
 Document user/passwd issues at the various levels of the gofer stack
@@ -42,7 +42,7 @@
 Call method on transport failure so transport can cleanup/reset if it wants
 Gofer: gearman - need to disable coallesing for non-idempotent requests
 
-=head2 Changes in DBI 1.601 (svn rev XXX),  XXX
+=head2 Changes in DBI 1.601 (svn rev 10103),  21st October 2007
 
   Fixed t/05thrclone.t to work with Test::More >= 0.71
     thanks to Jerry D. Hedden and Michael G Schwern.
@@ -53,7 +53,7 @@
     distribution modules plus Cache::Memcached, Cache::FastMmap etc.
     Works for all transports. Overridable per handle.
 
-  Added DBI::Util::CacheMemory for use with DBD::Gofer
+  Added DBI::Util::CacheMemory for use with DBD::Gofer caching.
     It's a very fast and small strict subset of Cache::Memory.
 
 =head2 Changes in DBI 1.59 (svn rev 9874),  23rd August 2007

Modified: dbi/trunk/lib/DBD/Gofer.pm
==============================================================================
--- dbi/trunk/lib/DBD/Gofer.pm  (original)
+++ dbi/trunk/lib/DBD/Gofer.pm  Sun Oct 21 15:05:38 2007
@@ -1186,6 +1186,12 @@
 
 This can be used to implement different caching policies for different 
statements.
 
+It's interesting to note that DBD::Gofer can be used to add client-side caching
+to any (gofer compatible) application, with no code changes and no need for a
+gofer server.  Just set the DBI_AUTOPROXY environment variable like this:
+
+    DBI_AUTOPROXY='dbi:Gofer:transport=null;cache=1'
+
 =head1 CONFIGURING BEHAVIOUR POLICY
 
 DBD::Gofer supports a 'policy' mechanism that allows you to fine-tune the 
number of round-trips to the Gofer server.

Modified: dbi/trunk/t/80proxy.t
==============================================================================
--- dbi/trunk/t/80proxy.t       (original)
+++ dbi/trunk/t/80proxy.t       Sun Oct 21 15:05:38 2007
@@ -388,7 +388,7 @@
     Test($csr_a = $dbh->prepare("SELECT name, mode FROM long_list_$i"));
     Test($csr_a->execute(), $DBI::errstr);
     my $ary = $csr_a->fetchall_arrayref;
-    Test(@$ary == $i);
+    Test(@$ary == $i, "expected $i got "[EMAIL PROTECTED]);
     if ($i) {
         my @n1 = map { $_->[0] } @$ary;
         my @n2 = reverse map { "file$_" } 1..$i;

Modified: dbi/trunk/t/87gofer_cache.t
==============================================================================
--- dbi/trunk/t/87gofer_cache.t (original)
+++ dbi/trunk/t/87gofer_cache.t Sun Oct 21 15:05:38 2007
@@ -10,7 +10,7 @@
 use Test::More;
 use DBI::Util::CacheMemory;
 
-plan skip_all => "Gofer DBI_AUTOPROXY" if $ENV{DBI_AUTOPROXY} =~ /^dbi:Gofer/i;
+plan skip_all => "Gofer DBI_AUTOPROXY" if (($ENV{DBI_AUTOPROXY}||'') =~ 
/^dbi:Gofer/i);
 
 plan 'no_plan';
 

Reply via email to