Re: mySQL and SQLDriverConnect

Nick Gorham <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
Igor Korot wrote:

>Nick,
>
>-----Original Message-----
>  
>
>>From: Nick Gorham <[email protected]>
>>Sent: Jun 13, 2008 5:03 PM
>>To: Igor Korot <[email protected]>, Development issues and topics for unixODBC <[email protected]>
>>Subject: Re: [unixODBC-dev] mySQL and SQLDriverConnect
>>
>>Igor Korot wrote:
>>
>>    
>>
>>>Hi, ALL,
>>>It looks like mySQL people don't use SQLDriverConnect at all... ;-)
>>>
>>>I'm trying to connect to the mySQL server locally using the ODBC driver from mySQL site
>>>with unixODBC-2.2.12. And I'm using SQLDriverConnect in my C++ program.
>>>
>>>When I tried to use isql I get the connection without any problems. I issued:
>>>
>>> 
>>>
>>>      
>>>
>>Check that the driver build is using the libodbcinst.so API to access 
>>the ini file, if not it may be doing its own thing and not finding it. 
>>Try setting theenv var ODBCINI to the odbc.ini you are using.
>>    
>>
>
>2 points:
>
>1. isql works:
>
>isql test root
>
>but it uses SQLConnect to get a connection, so it does not tell us anything,
>right?
>
>2. SQLDriverConnect() function is overridden inside the mySQL driver. But it
>should call the function from the ODBC API, and then fall down to the driver one,
>right?
>  
>
Yes, all the DM does, is look for a DSN= or DRIVER= in the connection 
string, and use that toi decide what drive to load, then it loads that 
driver and passes the call with the arguments the same onto the driver.

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.