Bug #880 Ole Db Driver Bug
Submitted: 21 Jul 2003 3:31 Modified: 29 Jul 2003 0:06
Reporter: tayfun cakir Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:Ver 11.18 Distrib 3.23.55, for Windows OS:Windows (Windows 2000)
Assigned to: Venu Anuganti CPU Architecture:Any

[21 Jul 2003 3:31] tayfun cakir
Description:
I use VB6.0 / Mysql Server 3.23.55 / Windows 2000

I have this sql statement.
SELECT  
CASE  WHEN isnull( se_ist )  THEN 0  ELSE 1 END  
FROM bet_jahr_daten

And my connection strings:

for oledb driver:
conn.Open "Provider=MySqlProv.3.0;Data Source=snoopy;User ID=root;Location=localhost;"

for odbc driver:
conn.Provider = "MySQLProv"
conn.Properties("Data Source") = "DSN=test"

If I m connect sgl statement with mysql database on odbc driver it works. 
But if I connect on ole db driver it works with an error. It should just show 
the values 0 which are helps to make the condition, but it shows all 0. 
I m using  version 3 of mysql ole db driver. 

Table :

bet_jahr_daten
--------------
se_ist | 1
se_ist | 2
se_ist | 3
se_ist | NULL
se_ist | 3
se_ist | 4
se_ist | NULL

How to repeat:

for oledb driver:
conn.Open "Provider=MySqlProv.3.0;Data Source=snoopy;User ID=root;Location=localhost;"

for odbc driver:
conn.Provider = "MySQLProv"
conn.Properties("Data Source") = "DSN=test"

If I m connect sgl statement with mysql database on odbc driver it works. 
But if I connect on ole db driver it works with an error. It should just show 
the values 0 which are helps to make the condition, but it shows all 0. 
I m using  version 3 of mysql ole db driver. 

Table :

bet_jahr_daten
--------------
se_ist | 1
se_ist | 2
se_ist | 3
se_ist | NULL
se_ist | 3
se_ist | 4
se_ist | NULL
[28 Jul 2003 11:40] Venu Anuganti
Hi !!

The problem is that MyOLEDB embedded with pretty old libmysqlclient internally, which may not be upto date to receives any changes in the protocol.

So, we can't guarantee the results from MyOLEDb. But we do have plans to make this as part of MySQL distribution in the very near future..

Thanks
Venu