Bug #41256 | Incorrect handling of "Null" under certain conditions | ||
---|---|---|---|
Submitted: | 5 Dec 2008 11:14 | Modified: | 14 Apr 2010 16:23 |
Reporter: | Louis Breda van | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S1 (Critical) |
Version: | 5.1.5 | OS: | Windows (VISTA64) |
Assigned to: | Jess Balint | CPU Architecture: | Any |
Tags: | null, ODBC |
[5 Dec 2008 11:14]
Louis Breda van
[5 Dec 2008 11:52]
Louis Breda van
Hello, I should also remark another ODBC5 Null bug here. When trying to assign Null to a Decimal field you will get the error: 'OUT OF RANGE' Louis
[5 Dec 2008 17:21]
Tonci Grgin
Louis, I see... Asked Jess to take a look.
[9 Dec 2008 0:50]
Jess Balint
patch + test
Attachment: bug41256.diff (application/octet-stream, text), 3.77 KiB.
[9 Dec 2008 5:29]
Louis Breda van
Jess Thanx, But, test at my side has to wait for the binairy, since I am not compiling my own binairy (perhaps some time in the futhure, who knows :>). Too complex for now. Sincerely, Louis PS. I Assume this fixed both problems the Bigint and the decimal one !?
[15 Jan 2009 17:24]
François LHERITIER
Vb6 Project to test the bug on Null Fields with Driver 5.1.5
Attachment: Bug-Odbc5-41256-vbtest.zip (application/zip, text), 3.16 KiB.
[15 Jan 2009 17:26]
François LHERITIER
Hello, i am working on w2000sp4 and XpProSp3 . My access to MysQL is through ADO with MyOdbc Driver. Odbc Driver 5 don't work correctly with Null Fields as Driver 3 do it . For standard fields with integer, bigint or mediumint, the final value stored in the base is unpredictable when they are assigned with NULL on Insert statement ... Generaly, first fields=0, last field=[value>0] For extra field with auto-increment specification: when assigning this field to NULL, the stored value is generaly always the same (23 at this time ...), uncomfortable when it's a key ... when assigning this field to zero, the process is correct ... To test with VB6 : see attached file .
[23 Feb 2009 15:03]
Darren Grayson
We have just moved from connector 3.51 to 5.1.5 for our existing ASP application and come across this problem. Our platform is ADO/MDAC 2.8 on Win 2003. Appears to occur when inserting or updating with an ADO Recordset object (but not on direct execution of an update or insert statement via Connection object). Anybody care to guess if it's worth going back to 5.1.4 until a patch is available? Darren
[24 Feb 2009 5:03]
Jess Balint
All - I will put this in a dev snapshot for testing shortly.
[24 Feb 2009 20:22]
Jess Balint
Pushed as rev 826, will be released in 5.1.6
[25 Feb 2009 19:26]
Louis Breda van
Jess, I will try that relase as soon as it is available. The actual situation, where you can neither rely on ODBC3 nor ODBC5 is ^not pleasant^. I would really prefer to use ODBC5 every where, in a lot of cases e.g. subquerys I need it. However to often I find the code not working reliable. I think in most cases related to this problem. So at this moment, it is causing me to much "hope and pray" / hours Sincerely, Louis
[27 Feb 2009 10:22]
Tony Bedford
An entry was added to the 5.1.6 changelog: MySQL Connector/ODBC updated some fields with random values, rather than with NULL.
[5 May 2009 10:22]
Darren Grayson
Is there any expected release date for version 5.1.6?
[5 May 2009 10:27]
Tonci Grgin
Darren, no, not really. But we're finalizing it.
[30 May 2009 19:05]
Sergio Menezes
Hi, friends, good afternoon. I have a website that used to use MySQL Database 3. Recently, I was forced to do migration to MySQL 5.1.3. So, I had to update the MyODBC Connector. Now, the website is using 5.1.5 version. And I was surprised myself when I discovered this problem of Null updates using ADODB.RecordSet component. I'd like to know if someone has some idea to workaround this problem, because it's impossibile to make changes in the whole asp code. I need a couple of weeks make this changes. Taking advantage, I'd like when the problem would be fixed, because I've read some comments, and this problem is happening since last year. Regards Sergio Menezes São Paulo/Brazil
[9 Apr 2010 9:13]
Tonci Grgin
http://dev.mysql.com/doc/refman/5.1/en/comparison-operators.html#operator_is-null + I added this bug to Bug#27909.
[14 Apr 2010 16:23]
Louis Breda van
Hello, I just retested the problem using mysql 5.5.3 64 bit windows server, in combination with VISUAL STUDIO 2010 profesional as released last monday. The problem seems to be gone .. I assume the problem was related to VISUAL STUDIO RC1. So sorry for the effort Tonci. Thanx, Louis
[15 Apr 2010 5:46]
Tonci Grgin
Louis, no problem, main thing is it works. Further more, you're one of the few people I accept "RC MS sw" bug report from. Usually I just ask to wait for at least SP1 to confirm it's not Microsoft problem ;-) Now you see why.