add tests for extended UPDATE/DELETE on MySQL/Postgres

also fix a bug in extended UPDATE on Postgres found by tests