The MySQL compatibility feature "insert ... on duplicate key update" did not work with a non-default schema.