rdbms: make select() warn when FOR UPDATE is used with aggregation