From: Peter Rabbitson Date: Wed, 20 Jan 2010 07:17:44 +0000 (+0000) Subject: Whoops - need to dsable quoting X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe426cb6fbd90178cb2f9fe6721ba8a4e6ab42cc;p=dbsrgits%2FDBIx-Class-Historic.git Whoops - need to dsable quoting --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 7cae67c..c0221b4 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -2851,8 +2851,11 @@ sub _resolved_attrs { my %already_grouped = map { $_ => 1 } (@{$attrs->{group_by}}); my $storage = $self->result_source->schema->storage; + my $sql_maker = $storage->sql_maker; + local $sql_maker->{quote_char}; #disable quoting + my $rs_column_list = $storage->_resolve_column_info ($attrs->{from}); - my @chunks = $storage->sql_maker->_order_by_chunks ($attrs->{order_by}); + my @chunks = $sql_maker->_order_by_chunks ($attrs->{order_by}); for my $chunk (map { ref $_ ? @$_ : $_ } (@chunks) ) { $chunk =~ s/\s+ (?: ASC|DESC ) \s* $//ix;