[Bast-commits] r5384 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Fri Jan 30 14:32:43 GMT 2009


Author: ribasushi
Date: 2009-01-30 14:32:42 +0000 (Fri, 30 Jan 2009)
New Revision: 5384

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
Log:
Add the _find_syntax caching back

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm	2009-01-30 14:27:38 UTC (rev 5383)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm	2009-01-30 14:32:42 UTC (rev 5384)
@@ -50,10 +50,13 @@
   $self;
 }
 
-
 # While we're at it, this should make LIMIT queries more efficient,
 #  without digging into things too deeply
 use Scalar::Util 'blessed';
+sub _find_syntax {
+  my ($self, $syntax) = @_;
+  $self->{_cached_syntax} ||= $self->SUPER::_find_syntax($syntax);
+}
 
 sub select {
   my ($self, $table, $fields, $where, $order, @rest) = @_;




More information about the Bast-commits mailing list