Update affected rows for selects.

This *may* not work for all adapters, but won't break anything.