[freetds] freeTDS 6.1 & OpenClient

Frediano Ziglio freddyz77 at tin.it
Fri May 2 14:51:54 EDT 2003


> The server in question does not have any @@ variables [it was built off of 
> OpenClient/C and they never included hangling of @@ variables].  How do I turn 
> this off so that this check doesn't happen?  I have used TDS version 4.2 -> 
> 5.0.
> 
> Any help would be greatly appreciated.
> 

In token.c remove these lines

	tds->spid = tds->rows_affected;
	if (tds->spid == 0) {
		if (tds_set_spid(tds) != TDS_SUCCEED) {
			tdsdump_log(TDS_DBG_ERROR, "%L tds_set_spid() failed\n");
			succeed = TDS_FAIL;
		}
	}

This should fix your problem... There is a function of DB-Library that
return pid, this won't work but I don't think it's a big problem ...

freddy77




More information about the FreeTDS mailing list