protect against sql expression update bugs