can i take anything for my ulcer

im 37 weeks pregnant and in killer pain. i have heart burn that caused an ulcer in my esophagus. is there any liquid type thing i can take? tums is not helping at all.