generally if you keep the reaction for a short time less than 3h the ester will not be affected, but prolonged reaction time and heating may reduce the ester. Also if you add some other metal compounds to tune the reactivity of the borohydride
Generally, Schiff bases are more reactive towards NaBH4, and can be reduced selectively in the presence of the esters. It all depends on your substrate structure and reaction conditions.