There are 4 types of ions in an $\ce{NaCl(aq)}$ solution: $\ce{H+}$, $\ce{OH-}$, $\ce{Na+}$ and $\ce{Cl-}$. According to the E.C.S. table, $\ce{H+}$ and $\ce{OH-}$ should preferentially discharge at cathode and anode, respectively.
However, according to the Wikipedia page on self-ionization of water, water only dissociates slightly into $\ce{H+}$ and $\ce{OH-}$ in neutral solution. (This is the reason why pure water conducts electricity poorly). Therefore, in the $\ce{NaCl(aq)}$ solution, the concentrations of $\ce{H+}$ and $\ce{OH-}$ ions are extremely small, and by comparison those of $\ce{Na+}$ and $\ce{Cl-}$ are much higher. As a result, it seems to me that $\ce{Na+}$ and $\ce{Cl-}$ should be preferentially discharged because of the concentration effect.
However, my chemistry textbook says that in fact $\ce{H+}$ and $\ce{OH-}$ are preferentially discharged, and hence the main products of the electrolysis are hydrogen and oxygen. So apparently my understanding is wrong. But where?