DBIx-Class-Helpers icon indicating copy to clipboard operation
DBIx-Class-Helpers copied to clipboard

AutoRemoveColumns breaks `select =>`

Open mzealey opened this issue 6 years ago • 2 comments

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 }).

mzealey avatar Mar 12 '18 15:03 mzealey

any chance you could write a test?

frioux avatar Mar 12 '18 15:03 frioux

@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)

mzealey avatar Mar 12 '18 16:03 mzealey