Equality with parameters also skips UPDATE transformation

As an extension to #1173.

Note that I didn't change the test to use cascading PRIMARY and FOREIGN KEYs as that wasn't required to get a failure, just parameters were.