[python-sybase] FreeTDS + Sybase Module = MS SQL 2000
Kevin Jacobs
jacobs at penguin.theopalgroup.com
Thu, 11 Jul 2002 23:24:27 -0400 (EDT)
On 12 Jul 2002, Dave Cole wrote:
> Kevin> On 11 Jul 2002, Dave Cole wrote:
> Kevin> > Thank you very much for that patch. I will apply it this weekend if
> Kevin> > other family events do not prevent me.
> Kevin>
> Kevin> Here is another small patch for FreeTDS that really helps:
> Kevin>
> Kevin> --- ct.c~ Thu Jul 11 09:48:00 2002
> Kevin> +++ ct.c Thu Jul 11 09:48:00 2002
> Kevin> @@ -807,6 +807,8 @@
> Kevin> if (cmd->con->tds_socket) {
> Kevin> tds_free_all_results(cmd->con->tds_socket);
> Kevin> }
> Kevin> + if (ret == CS_END_DATA)
> Kevin> + ret = CS_SUCCEED;
> Kevin> return ret;
> Kevin> }
> Kevin>
> Kevin> Otherwise, ct_cancel returns CS_END_DATA instead of CS_SUCCEED.
>
> That is awesome debugging work.
>
> Have you submitted the patch to the FreeTDS dude(s)?
I've sent it in, but I'm not sure it is 100% correct yet -- there may be
more cases that need to be mapped to CS_SUCCEED/CS_FAIL. Do you know
where I could find an online spec for the CT lib?
Thanks,
-Kevin
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com