Bug #32203 | Using MySQL ODBC, cannot access views from Access (and possibly other apps?) | ||
---|---|---|---|
Submitted: | 8 Nov 2007 22:34 | Modified: | 11 Nov 2007 19:37 |
Reporter: | Andrew Hanna | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51, 5.1 | OS: | Windows (XP SP2) |
Assigned to: | CPU Architecture: | Any |
[8 Nov 2007 22:34]
Andrew Hanna
[9 Nov 2007 9:20]
Tonci Grgin
Access showing the view properly
Attachment: Bug32203.JPG (image/jpeg, text), 61.69 KiB.
[9 Nov 2007 9:43]
Tonci Grgin
Hi Andrew and thanks for your report. You got me thinking for a while over this... Here's what I came up with: - Check attached image, see that my Access 2003 and MyODBC 3.51.21 show correct result. - I'm using MySQL server 5.0.50pb on WinXP Pro SP2 localhost - In DDL script I just changed t -> t32203-1, t2 -> t32203-2 and tv -> tv32203 If you start mysql cl client with -T option you should see Field 3: 'number' is defined as NEWDECIMAL which is a rather large type: c:\mysql507\bin>mysql -uroot -p -T test Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.0.50-pb1046-log MySQL Pushbuild Edition, build 1046 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select * from tv32203; Field 1: `id` Catalog: `def` Database: `test` Table: `tv32203` Org_table: `t32203-1` Type: LONG Collation: binary (63) Length: 10 Max_length: 1 Decimals: 0 Flags: NOT_NULL PRI_KEY UNSIGNED AUTO_INCREMENT NUM PART_KEY Field 2: `test` Catalog: `def` Database: `test` Table: `tv32203` Org_table: `t32203-1` Type: BLOB Collation: latin1_swedish_ci (8) Length: 65535 Max_length: 5 Decimals: 0 Flags: BLOB Field 3: `number` Catalog: `def` Database: `test` Table: `tv32203` Org_table: `t32203-1` Type: NEWDECIMAL Collation: binary (63) Length: 11 Max_length: 11 Decimals: 9 Flags: UNSIGNED Field 4: `t2text` Catalog: `def` Database: `test` Table: `tv32203` Org_table: `t32203-2` Type: BLOB Collation: latin1_swedish_ci (8) Length: 65535 Max_length: 2 Decimals: 0 Flags: BLOB +----+-------+-------------+--------+ | id | test | number | t2text | +----+-------+-------------+--------+ | 1 | Hello | 9.345456000 | Hi | +----+-------+-------------+--------+ 1 row in set (0.00 sec) If you were to put wider float type into smaller one I would have expected this error but that doesn't seem to be the case... There is a long history of Microsoft fighting DECIMAL types, especially Excel and Access. In Access 97 the data would just disappear if you tried to programmatically assign Decimal type data to display in a form or report. Sorting of DECIMAL fields is not yet fixed not even in Access 2007 (http://allenbrowne.com/bug-08.html) etc. Now, please add MySQL server version, host OS info, Access version info, MDAC info, MyODBC version info, MyODBC options used to this otherwise great report and maybe we can find out where the problem might be.
[9 Nov 2007 18:55]
Andrew Hanna
Well, I have Office XP, so that might be the problem. It seems to not be a problem with the Float/Double data types, so I think I'll just think about switching to that column type instead... Thanks for the help, though!
[11 Nov 2007 19:37]
Tonci Grgin
Andrew, it could be, especially with numeric structure ODBC uses but as I can't repeat it I'll close report for now. Thanks for your interest in MySQL.
[13 Nov 2007 16:24]
Susanne Ebrecht
Andrew, this really seems to be your Office version. I can't repeat this with Office 2007 too. Susanne
[13 Nov 2007 16:24]
Susanne Ebrecht
here is my screenshot from Office 2007
Attachment: accees_view.JPG (image/jpeg, text), 115.35 KiB.