I want to do the equivalent of INSERT IGNORE to a table with a UNIQUE constraint. I can't find a way to do this with the C++ connector, so I've fallen back to capturing the Error and checking to see whether its string begins "CDK Error: Duplicate ". Is there a better way?
↧