Skip to Content.
Sympa Menu

freetds - Re: WARNING: Changing tds_connect() API

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: WARNING: Changing tds_connect() API
  • Date: 12 Sep 2002 07:50:28 +0200


Il gio, 2002-09-12 alle 02:02, Castellano, Nicholas ha scritto:
> I will be changing the API for tds_connect(). Currently, this function
> returns the TDSSOCKET * to its caller. However, in dblib we need this
> information in the dbproc before tds_connect() returns. When error or
> message handlers are invoked during login, the dbproc currently appears to
> be DBDEAD() since the socket is not set up. In the new scheme, tds_connect
> will take a TDSSOCKET ** parameter, and will fill in the new TDSSOCKET **
> when it has been connected to the database server.
>
> So instead of:
>
> dbproc->tds_socket = (void *) tds_connect(login->tds_login,
> g_dblib_ctx->tds_ctx, (void *)dbproc);
>
> We will now have:
>
> tds_connect(&(dbproc->tds_socket), login->tds_login, g_dblib_ctx->tds_ctx,
> (void *)dbproc);
>
> Of course all the other calls throughout the tree will be updated as well,
> to use the new API.
>
> I intend to commit this early tomorrow (along with a while bunch of other
> error/message handler fixes), unless there are any serious objections.
>
> Cheers,

So... you are already developing 0.61... wait a moment, i think it time
for a beer :)

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page