[Jifty-commit] r4518 - in Jifty-DBI/trunk: . lib/Jifty/DBI

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Nov 21 12:10:12 EST 2007


Author: falcone
Date: Wed Nov 21 12:10:12 2007
New Revision: 4518

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
   Jifty-DBI/trunk/t/01searches.t

Log:
 r26805 at ketch:  falcone | 2007-11-21 12:08:36 -0500
 * expand the escape documentation


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	Wed Nov 21 12:10:12 2007
@@ -11,7 +11,7 @@
 =head1 SYNOPSIS
 
   use Jifty::DBI::Collection;
-  
+
   package My::ThingCollection;
   use base qw/Jifty::DBI::Collection/;
 
@@ -20,7 +20,7 @@
   use Jifty::DBI::Record schema {
     column column_1 => type is 'text';
   };
-  
+
   package main;
 
   use Jifty::DBI::Handle;
@@ -1132,7 +1132,9 @@
 
 =item escape
 
-If you need to escape wildcard characters in the value *explicitly* with "ESCAPE", set the escape character here. Note that backslashes may be required special treatment (e.g. Postgres).
+If you need to escape wildcard characters (usually _ or %) in the value *explicitly* with 
+"ESCAPE", set the  escape character here. Note that backslashes may require special treatment 
+(e.g. Postgres dislikes \ or \\ in queries unless we use the E'' syntax).
 
 =item entry_aggregator 
 

Modified: Jifty-DBI/trunk/t/01searches.t
==============================================================================
--- Jifty-DBI/trunk/t/01searches.t	(original)
+++ Jifty-DBI/trunk/t/01searches.t	Wed Nov 21 12:10:12 2007
@@ -145,7 +145,7 @@
         isa_ok( $first_rec, 'Jifty::DBI::Record', 'First returns record object' );
         is( $first_rec->login, 'glasser', 'login is correct' );
 
-        # LIKE with escaped wildcard
+        # MATCHES with escaped wildcard
         $users_obj->clean_slate;
         is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
         # XXX: don't use backslashes; reason above


More information about the Jifty-commit mailing list