Views are automatically excluded from using insert_returning.
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource / View.pm
index 9c0d51a..be29bdb 100644 (file)
@@ -164,6 +164,7 @@ The constructor.
 sub new {
     my ( $self, @args ) = @_;
     my $new = $self->next::method(@args);
+    $new->{resultset_attributes}->{storage}->{use_insert_returning} = 0;
     $new->{deploy_depends_on} =
       { map { $_ => 1 }
           @{ $new->{deploy_depends_on} || [] } }