问题
FEATURES: MS ACCESS 2010 + ODBC conector + MySQL server
PROBLEM: All fields with datatype INT in first 10 rows show 0 (zero) values. If I short asc or desc still first 10 rows with INT = 0. When I trying to edit that records, sometimes I get "The data has been changed", but sometimes when update some field in these records, real value appears. Until I close and open that table, than value again become 0
I workaround all day to find solution, but I cant handle this problem. I have more than 10 tables, but problem only in this main orders table, which has size 4.0 MB and about 8000 rows. There is 76 columns, whit INT, BIT, FLOAT, DATETIME, TIMESTAMP, CHAR, VARCHAR datatypes and 2 fields with expression (VIRTUAL).
I tried to reduce columns and records count, but it didn't help.
回答1:
Looks like MySQL Connector/ODBC Bug #91191.
When running a SELECT prepared statement using Classic ASP/VBScript and ODBC (I tested both version 8.0.17 & 5.3.13, 32-bit/64-bit) any column that is an INT datatype always returns a value of 0.
Just fixed with MySQL Connector/ODBC 8.0.19
来源:https://stackoverflow.com/questions/59676872/ms-access-odbc-8-0-mysql-some-field-show-first-10-rows-0-though-mysql-show