freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "David Barnwell" <david.barnwell AT well.ox.ac.uk>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] intermittent empty results
- Date: Tue, 29 Jun 2004 12:43:17 -0000
Hi James,
Yes, I get syb_result_type = 4043 in the error case (when SQL Server decides
to update statistics) and 4040 on each row in the normal case.
Thanks to everyone for very prompt responses -- I can now code for this case
without difficulty.
Best regards,
David
----- Original Message -----
From: "James K. Lowden" <jklowden AT schemamania.org>
To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
Sent: Tuesday, June 29, 2004 12:12 AM
Subject: Re: [freetds] intermittent empty results
On Mon, 28 Jun 2004 14:53:53 EDT, Thompbil18 AT aol.com wrote:
> we have no way of knowing of course whether this is a valid return
> status that you might want to retrieve or not, so we do what we do with
> all return status messages - we "manufacture" a result set for the
> return status, and inform ct-library that there is a return status to
> fetch.
David,
"perldoc DBD::Sybase" says:
You can get the type of the current result set with
$sth->{syb_result_type}. This returns a numerical value,
as defined in $SYBASE/include/cspublic.h:
#define CS_ROW_RESULT (CS_INT)4040
#define CS_CURSOR_RESULT (CS_INT)4041
#define CS_PARAM_RESULT (CS_INT)4042
#define CS_STATUS_RESULT (CS_INT)4043
#define CS_MSG_RESULT (CS_INT)4044
#define CS_COMPUTE_RESULT (CS_INT)4045
In particular, the return status of a stored procedure is
returned as CS_STATUS_RESULT (4043), and is normally the
last result set that is returned in a stored proc execu-
tion.
The script in your original posting doesn't use syb_result_type. It might
be just what the doctor ordered. Dr. Bill, that is.
--jkl
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] intermittent empty results,
David Barnwell, 06/25/2004
- <Possible follow-up(s)>
-
RE: [freetds] intermittent empty results,
Thompson, Bill D (London), 06/28/2004
- RE: [freetds] intermittent empty results, Michael Peppler, 06/28/2004
-
RE: [freetds] intermittent empty results,
Thompson, Bill D (London), 06/28/2004
- Re: [freetds] intermittent empty results, David Barnwell, 06/28/2004
- RE: [freetds] intermittent empty results, Bort, Paul, 06/28/2004
- RE: [freetds] intermittent empty results, Lowden, James K, 06/28/2004
-
Re: [freetds] intermittent empty results,
Thompbil18, 06/28/2004
-
Re: [freetds] intermittent empty results,
James K. Lowden, 06/28/2004
- Re: [freetds] intermittent empty results, Michael Peppler, 06/29/2004
- Re: [freetds] intermittent empty results, David Barnwell, 06/29/2004
-
Re: [freetds] intermittent empty results,
James K. Lowden, 06/28/2004
- RE: [freetds] intermittent empty results, Thompson, Bill D (London), 06/29/2004
Archive powered by MHonArc 2.6.24.