Pain impulses from the stomach are carried by visceral afferent fibers that accompany sympathetic nerves. This fact is evident because pain of a recurrent peptic ulcer may persist after complete vagatomy, whereas patients who have had a bilateral sympathectomy may have a perforated peptic ulcer and experience no pain.
Clinically Oriented Anatomy, page 257
By Keith L. Moore, Arthur F. Dalley, A. M. R. Agur