Re: No TDS_RET_STATUS




Ok. A few suggestions:
1 - you shouldn't be doing that commit() call. If you
have a real transaction, you should commit it
at the level you start it. If you haven't started a transaction
that's a waste.
2 - You should process all the inline results from the
statement execute() before you try to get any
output parameters. Try this code: (Assuming there
aren't any inline results you care about)

int updateCount = -1;
boolean getRs = m_FindChildCallStatement.execute();
while (true) // clear any inline returns
{
if (getRs) m_FindChildCallStatement.getResultSet().close();
else updateCount = m_FindChildCallStatement.getUpdateCount();

if (!getRs && (updateCount == -1)) break; // done with loop
else getRs = m_FindChildCallStatement.getMoreResults();
}
// get output param values after loop
childId = m_FindChildCallStatement.getInt(4);

Joe Weinstein at BEA Systems

.



Relevant Pages

  • Re: [patch] x86: phase out forced inlining
    ... commit 4507a6a59cfc6997e532cd812a8bd244181e6205 does not exist: ... /* Somewhere in the middle of the GCC 2.96 development cycle, ... iirc gcc was failing to inline functions which we'd marked `inline' and it ... versions were practically unusable for distro kernels anyway (and were ...
    (Linux-Kernel)
  • Re: x86: spinlock ops are always-inlined
    ... Commit: 7fda20f146d5d217684ffbc37c6b6c5f82c2dffd ... x86: spinlock ops are always-inlined ... decide whether to inline or not. ...
    (Linux-Kernel)
  • Re: [PATCH] prepare kconfig inline optimization for all architectures
    ... what's wrong with having "inline" on functions in .c files if ... Ingo's commit in your tree just broke this assumption. ... Note that our problem is too much inlining, ... gcc _used_ to always do what people asked for, ...
    (Linux-Kernel)

Loading