As a personal preference I waited until my babies were born before getting dental work done, and stuck with the non mercury fillings as I was breastfeeding. However depending on the urgency of the filling you might not want to wait, in which case I believe a local anasthesia would be fine. I am scared of the dentist so didn't go when pregnant as I didn't want to inflict my fear and stress on my growing babies.