Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Problem with SQLDriverConnect()

Problem with SQLDriverConnect()

2007-11-24       - By Luiz E. P. Fernandes

 Back
Hi,

I hope this is the right place to submit a bug report for myodbc3.dll.

This happens in a program I wrote that tries to connect with MySql
server through MySql ODBC Driver.  A call to SQLDriverConnect() raises
an exception C0000005 (EXCEPTION_ACCESS_VIOLATION).

Here are some details:

1. The server is MySql Community Server version 5.0 running on the same
machine as the client program.

2. The ODBC driver is myodbc3.dll version 3.51.22.0.  The same problem
was happening with version 3.51.19.0.

3. The operating system is Windows 2000 05.00 Build 02195 Service Pack

4. The connection string is "dsn=World Sample for MySql User".  This DSN
succeeds when tested during configuration with the ODBC Data Source
Administrator.  It connects to the "World" sample database for MySql.

5. The client program succeeds to connect with the same DSN when the
call to SQLDriverConnect() is replaced with a call to SQLConnect().

6. The PATH environment variable includes the bin directory of the MySql
installation.

7. This is the section of ODBC trace with the call to SQLDriverConnect():

testsqlkit 10 274-8d4 ENTER SQLDriverConnectW
HDBC 02A51348
HWND 000F027C
WCHAR * 0x02A19B98 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x02A19B98
SWORD 2
SWORD * 0x00000000
UWORD 1 <SQL_DRIVER_COMPLETE>

8.  The same client program works correctly with OpenLink MySql ODBC
driver, connecting to the same database.

9. The client program is written in C++ and compiled with Microsoft's
Visual Studio .NET 2003.

If you need any additional information, please let me know.

Thanks!
Luiz E. P. Fernandes



--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/myodbc?unsub=mysql@(protected)