Re: mySQL and SQLDriverConnect
Igor Korot <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <8094435.1213393912862.JavaMail.root@elwamui-little.atl.sa.earthlink.net> |
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? Thank you. > >-- >Nick _______________________________________________ unixODBC-dev mailing list [email protected] http://mail.easysoft.com/mailman/listinfo/unixodbc-dev