[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    [freetds] Re: More ODBC driver documentation desired
From:       Brian Bruns <camber () ais ! org>
Date:       2002-02-07 0:30:11
[Download RAW message or body]

On Wed, 6 Feb 2002, Dan Melomedman wrote:

> Brian Bruns writes: 
> 
> > Ok bad news from the front.  The LDAP stuff does the following ugly hack 
> > 
> > SQLGetInfo(dbh,SQL_DRIVER_NAME,drv_name,30,&len);
> > if (!strncmp(ldap_pvt_str2upper(drv_name),"SQLSRV32.DLL",30))
> >   {
> > ... 
> > 
> > So it is specifically looking for the microsoft driver and then turns 
> > cursors on as Nick alluded to.  Problem is I don't know how to do 
> > cursors in TDS 4.2/7.0 without doing quite a bit of work.
> 
> But that shouldn't happen on non-Windows machines? "SQLSRV32.DLL" is 
> returned on Windows only right? 

You got it! (or with an ODBC bridge...but that's another story).  My point 
is that the code is specifically checking for that driver and doesn't 
check for a more general class of drivers who have the same problem.

Brian


---
You are currently subscribed to freetds as: [freetds@progressive-comp.com]
To unsubscribe, forward this message to leave-freetds-113879Q@franklin.oit.unc.edu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic