frioux / DBIx-Class-Helpers

https://metacpan.org/pod/DBIx::Class::Helpers
20 stars 38 forks source link

AutoRemoveColumns breaks `select =>` #90

Open mzealey opened 6 years ago

mzealey commented 6 years ago

If I have AutoRemoveColumns in operation and I do something like

my $select_rs = $rs->search( {}, {
  select => '...'
})

it generates sql which behaves as if I had done '+select' as the option. This is an issue when for example I want to do $rs->update({ foo => $select_rs->as_query }).

frioux commented 6 years ago

any chance you could write a test?

mzealey commented 6 years ago

@frioux I couldn't figure out how to show the select issue but I have the prefetch working (verify with a DBIC_TRACE=1 while running the test)