Add support for ON DUPLICATE KEY