* Fixed the bug with omitting 'FOR UPDATE'/'FOR SHARED' (introduced from the 'subque...
Norbert Buchmuller [Wed, 18 Feb 2009 03:43:54 +0000 (04:43 +0100)]
lib/DBIx/Class/Storage/DBI.pm

index 5865916..00a6c19 100644 (file)
@@ -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 = {