While deriving the solution for the stochastic differential equation that models the Ornstein–Uhlenbeck process, Paul Wilmott (Paul Wilmott on Quantitative Finance, chapter 4, page 87) performs the following integration by parts ($X$ is normal):
$$\int_0^t e^{\gamma(s-t)} \, dX(s) = X - \gamma \int_0^t e^{\gamma(s-t)}X(s) \, ds$$
I was trying to replicate this result by using the following result from calculus:
$$u=e^{\gamma(s-t)} \implies du = \gamma e^{\gamma(s-t)} \, ds$$ $$dv = dX(s) \implies v = X(s)$$
Then, we could write
$$\int_0^t u\, dv = u\,v|_0^t - \int_0^t v \, du = X(1-e^{-\gamma t})-\gamma \int_0^t e^{\gamma(s-t)}X(s) \, ds$$
which is different from his original solution. Where is my mistake? Is there any other way of evaluating integration by parts in the context of stochastic calculus?