Do not execute update statement if it's not needed.