I would say that no limits are required, because what is required is the antiderivative of g. That is, just rewriting your equation for the purposes of annotation:

I think it helps to remember from where this formula comes: the product rule for derivatives:

Now, the second step there, where I integrated, could have been definite integrals. Then it would have looked like this:

But notice that both terms in both integrands are just functions. Now the way you've expressed integration by parts, you have my equals your But they're still just functions.

Does that help?