Skip to Content.
Sympa Menu

freetds - Re: dbrows missing...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: dbrows missing...
  • Date: Wed, 28 Aug 2002 16:15:09 -0400


> From: Brian Bruns [mailto:camber AT ais.org]
> Sent: August 28, 2002 3:36 PM
>
> I suspect that at some time in the past the DBROWS macro directly mucked
> with the dbprocess to return a result. The function was probably
> introduced later in an attempt to clean things up,

Brian,

Thanks, I see. You suspect that in making DBPROCESS opaque, Sybase added
functions to get/set things in it, functions whose job was originally done
by macros. Maybe in some protosybase, there was no macro at all, and you
were expected to address the structure directly?

> but the dbrows()
> function AFAIK was never published in the documentation and the only
> reason it appears in code is because people look at the
> headers and short circuit the code, perhaps thinking it will be faster.

There's another reason. People who spend their days with SQL Server on NT
read Microsoft's documentation (well, some do) and MS's dblib uses lowercase
function names thoughout, no macros provided. There's an exception:
DBSETLUSER() and friends, the functions that set up the LOGINREC, are all
uppercase. Go figure.

My bet is that by the time MS licensed Sybase's 4.2 code, DBROWS() etc. had
already become simple pass-throughs, so MS tossed them out in the name of
incompatibility^Wsimplicity. Whereas DBSETLUSER() etc. call dbsetlname()
sparing the user a parameter, so they kept those. Anyway, that's my
dataless theory.

Regards,

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.






Archive powered by MHonArc 2.6.24.

Top of Page