MS Access + ODBC 8.0 + MySQL some field show first 10 rows =0, though MySQL shows other values

ぐ巨炮叔叔 提交于 2020-01-16 08:41:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!