From: Norbert Buchmuller Date: Wed, 18 Feb 2009 03:43:54 +0000 (+0100) Subject: * Fixed the bug with omitting 'FOR UPDATE'/'FOR SHARED' (introduced from the 'subque... X-Git-Tag: v0.08240~115 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cc3b77095de9f0e574b0ed32403f4299e6588f45;p=dbsrgits%2FDBIx-Class.git * Fixed the bug with omitting 'FOR UPDATE'/'FOR SHARED' (introduced from the 'subquery' branch, made 72pg.t fail). --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 5865916..00a6c19 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -1377,7 +1377,7 @@ sub _select_args { my $for = delete $attrs->{for}; my $sql_maker = $self->sql_maker; - local $sql_maker->{for} = $for; + $sql_maker->{for} = $for; if (exists $attrs->{group_by} || $attrs->{having}) { $order = {