Rethrowing exception in case the code is not MYSQL_CODE_DUPLICATE_KEY

PLAT-924 #time 5m