Skip to Content.
Sympa Menu

freetds - Re: [freetds] dbrpcsend() returning prematurely

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] dbrpcsend() returning prematurely
  • Date: Fri, 13 Jul 2007 11:29:13 -0400

Tim Cook wrote:
> the interesting thing I noticed is that dbsqlok
> () has returned *before* all the debug output from the stored
> procedure has been displayed. Its as if the "update" has been
> performed, sqldbok() returns but because the select hasn't been
> executed there is no data to return.

dbsqlok() signifies the server accepted your query. It parsed and
understood it. It has not executed it yet. Contrast with dbdataready().
dbresults() blocks until data arrive.

Could you be getting more than one resultset? We fixed some of that since
0.64 was released IIRC.

Please try with a recent snapshot. If it fails, send a TDSDUMP log. I
think it will work, though.

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page