MYSQL solution for "Row cannot be located, values have changed since it was last read."



Dear ADO friends,

I think I solved part of this problem using:

- MYSQL 4.1
- MYSQL ODBC driver 3.51
- DELPHI 7.0 with 7.1 update
- MDAC 2.8 SP 1
- WINDOWS XP

I had a very simple table with a auto incrementing primary key. When I
did a edit-> post on the table where nothing changed and I put one
integer field equal to the original value I got the above error.

thus with original value
mytablefield.value = 1;

mytable.edit
mytablefield.value := 1;
mytable.post

gives error..........

and
mytable.edit
mytablefield.value := 0;
mytable.post

does not (the same happened if I used a TDBGRID with navigator)

Thus I tried all kind of stuff that I found on this newsgroup. Nothing
helped. Also the TbetterADO did not.

Finally I found a remark on the mysql reference manual:
"For all versions of Access, you should enable the MyODBC Return
matching rows option"

and thus I did and it worked and the sun began shining again, angels
cheering etc.

Thus for windows xp. Open your "ODBC data source administrator" and
"Configure" your MYSQL datasource. Under the "Advanced" -> "Flags1" TAB
make sure "return matching rows" is checked !!

good luck !

.



Relevant Pages

  • Re: Access
    ... > in a mySql database to MS Access on our office computer. ... You need to install the MySQL ODBC driver, ... Use your favourite MySQL client to create an SQL dump and store the ...
    (comp.lang.php)
  • Re: MYSQL with ASP driver
    ... Jeff Cochran wrote in message ... >using MySQL Db with the ASP-able MySQL ODBC driver? ... Except for an iSeries/DB2 ODBC connection we've eliminated ODBC across ...
    (microsoft.public.inetserver.asp.db)
  • Re: Stumped by Union Query
    ... Error 3146 means that MySQL has generated an error, ... impossible to tell from the Access SQL what the MySQL ODBC driver has done ... Access 2003 linked via MySQL ODBC 3.51 driver into MySQL Server 5.0.21 ...
    (microsoft.public.access.queries)
  • Re: MYSQL with ASP driver
    ... >using MySQL Db with the ASP-able MySQL ODBC driver? ... Except for an iSeries/DB2 ODBC connection we've eliminated ODBC across ... Absolutely true. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Oh dear god! Unix Unix Unix! DIE!!!!!!!!!!!
    ... I pretty much gave up on Unix. ... > MySQL and PHP even if you want to run in on Windows. ... > simplest of fucking tasks on your Shitty open source OS and software..... ...
    (comp.sys.mac.advocacy)