How safe is anesthesia for dogs with heart conditions?

My 6-year-old Dachshund Weenie was born with a hole in his heart and we have always been advised never to put him under anesthesia unless…