freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Bill Thompson" <thompbil AT exchange.uk.ml.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: Re: coding advice, please...
- Date: Tue, 24 Sep 2002 10:14:47 -0400
Steve,
> > REG_ROW (a normal data row has been returned)
> > NO_MORE_ROWS (there ain't no more data...)
> > FAIL
> > BUF_FULL
> > a "compute id" (to tie back this compute data to its "result" information)
>
> I don't see much point in adding an additional output parameter just to
> provide a more detailed error code. Out of the above return codes, which
> ones would be considered "successes", and which are "failures"?
>
I guess REG_ROW and a compute_id (which would be a positive integer) would
be successes, FAIL is a (unknown) failure, BUF_FULL and NO_MORE_ROWS are
what I used to call "valid false"'s. All in all its a pretty messy API -
difficult to handle elegantly - but we have to live with it I guess.
Bill
> Steve Langasek
> postmodern programmer
>
> --+nBD6E3TurpgldQp
> Content-Type: application/pgp-signature
> Content-Disposition: inline
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9kHBNKN6ufymYLloRAjB1AJ9fJZ/AaAUxxslG8yUTvpzDF1bsIgCfd26f
> 6z5DCcHpF/gW2ln7dyffRzQ=
> =wjPo
> -----END PGP SIGNATURE-----
>
> --+nBD6E3TurpgldQp--
-
coding advice, please...,
Bill Thompson, 09/24/2002
- <Possible follow-up(s)>
- Re: coding advice, please..., Steve Langasek, 09/24/2002
- Re: coding advice, please..., Bill Thompson, 09/24/2002
- Re: coding advice, please..., stephen . hsu, 09/24/2002
- Re: coding advice, please..., Castellano, Nicholas, 09/24/2002
- Re: coding advice, please..., Chad Enney, 09/24/2002
- RE: coding advice, please..., Lowden, James K, 09/24/2002
- RE: coding advice, please..., Bill Thompson, 09/24/2002
- RE: coding advice, please..., Brian Bruns, 09/24/2002
- RE: coding advice, please..., Thompson, Bill D (London), 09/24/2002
Archive powered by MHonArc 2.6.24.