The Andy Griffith Show
Three Wishes for Opie (5x14)
:
Opie makes three wishes on a "magic lamp" Barney bought. When one of his wishes doesn't come true, Barney dismisses the whole thing. Opie learns there are many different ways for a wish to be granted.