For some documents, $$ if \displaystyle\inf_{\text{partition}}U_{\text{partition}}(f)=\sup_{\text{partition}}L_{\text{partition}}(f),\\then~f~is~Riemann\text{-}Stieltjes~integrable. $$ like the following:
However, my textbook said the definition of Riemann-Stieltjes integrability is: $$\lim_{\text{|Partition|}\to0}R_\text{Partition}$$ where $R_\text{Partition}$ is $\sum_\text{Partition}f(\xi_i)[{\phi(x_i)-\phi(x_{i-1})}]$, $\xi\in[x_{i-1}, x_{i}]$, and $\displaystyle\inf_{\text{partition}}U_{\text{partition}}(f)=\sup_{\text{partition}}L_{\text{partition}}(f)$ is not an equivalent definition of the Riemann-Stieltjes integrability.
My book gave a counter-example:
for the interval $[-1, 1]$, \begin{align} f(x)=\begin{cases}0\quad x\in[-1, 0) \\ 1\quad x\in [0,1]\end{cases} \end{align} \begin{align} \phi(x)=\begin{cases}0\quad x\in[-1, 0] \\ 1\quad x\in (0,1]\end{cases} \end{align}
The book concluded that in this case, $\inf U(f) = \sup L(f)$ but the value of Riemann-Stieltjes integral does not exist.
Which is correct?