To compare the efficacy and safety of metoclopramide nasal spray to oral tablets in diabetic patients with symptoms of gastroparesis , this randomized , open-label , parallel design study randomized subjects to 10 or 20 mg nasal spray or 10 mg tablet four times a day for 6 weeks .