Bug #16866 | Reading twice the field from the same record of the same recset has diff. value | ||
---|---|---|---|
Submitted: | 28 Jan 2006 11:51 | Modified: | 4 Apr 2007 4:48 |
Reporter: | Anestis Fraganestis | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 3.51,5.0 | OS: | Windows (Windows XP, Windows 2003) |
Assigned to: | CPU Architecture: | Any |
[28 Jan 2006 11:51]
Anestis Fraganestis
[28 Jan 2006 12:19]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but your test case is not complete. Please, add SQL statement to populate table with data and show the results of your program run (you may have to add a couple of printf calls, but anyway) and a makefile or project to build the program. To call something a bug we need a complete and repeatable test case.
[30 Jan 2006 16:00]
Anestis Fraganestis
Visual C++ 2003 project
Attachment: mysql1.zip (application/zip, text), 69.23 KiB.
[30 Jan 2006 16:01]
Anestis Fraganestis
Well, I just put 2 entries in the table and then run the programme in debug mode, putting a breakpoint on the line bstr_t s1=X->Fields->Item["Description"]->Value; Anyway, if you really think that this would help, here is the SQL for insertion, though it's trivial. INSERT INTO `transactions` (`TransactionID`,`Description`) VALUES(134925,'ABC'); INSERT INTO `transactions` (`TransactionID`,`Description`) VALUES(1,'XYZ'); That should be enough. I've seen the behaviour even with one record only. As for the project I will upload a zip containing the files, though in order to build it you must change the path of the "import" statement and the connection string.
[17 Feb 2006 13:43]
Anestis Fraganestis
Well??? Will that do??
[27 Feb 2006 21:21]
Jorge del Conde
Thanks for your test case. I was able to reproduce this bug with the attached file
[3 Apr 2007 23:47]
Jess Balint
bug#27596 marked as a duplicate of this
[4 Apr 2007 4:48]
Jess Balint
Due to the fact that 'text' and other long-type fields are read in chunks, they cannot be read twice. This conforms to the ODBC specification (see SQLGetData section). Non-text fields can be read twice via ADO because they are retrieved via bound columns and stored in ADO buffers and not re-read through the driver.
[10 Apr 2007 19:19]
Jess Balint
bug#24132 marked as a duplicate of this
[4 May 2007 14:50]
Jess Balint
bug#26213 marked as a duplicate of this
[24 May 2007 9:33]
Svend Grønlund
Does anyone know, if this only apply for cursortype adOpenForwardOnly?
[8 Oct 2007 10:35]
Susanne Ebrecht
Bug #31029 was marked as duplicate of this bug.
[15 Oct 2007 14:07]
Susanne Ebrecht
Bug #31553 is marked as duplicate of this bug here.
[22 May 2018 14:59]
Stephen Rider
I'm just going to complete the circle here, because there is a lot of information to be had in other threads about this same bug. Check out this link, and follow the chain of "This bug is a duplicate of..." links that eventually lead back to this post. https://bugs.mysql.com/bug.php?id=44831