Case-insensitive primary key constraint error detection