From: Peter Rabbitson Date: Fri, 30 Jan 2009 14:32:42 +0000 (+0000) Subject: Add the _find_syntax caching back X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=024a7053b9a77a9ce4ae9558e201f2946233f51c;hp=4e88dfc4aa9d6bd8591b1ce85dc33ae3afcf20c2;p=dbsrgits%2FDBIx-Class-Historic.git Add the _find_syntax caching back --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index b9cf838..5bafd7c 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -50,10 +50,13 @@ sub new { $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) = @_;