Bug #18123 | Problem in declaring FLOAT/DOUBLE fields as PRIMARY KEY | ||
---|---|---|---|
Submitted: | 10 Mar 2006 8:51 | Modified: | 27 Apr 2007 18:21 |
Reporter: | Grace Coronado | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 3.51.12 | OS: | Windows (MS XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | ODBC5-RC |
[10 Mar 2006 8:51]
Grace Coronado
[24 Mar 2006 8:42]
Tonci Grgin
Thanks for your bug report. Verified as described by user: DROP TABLE IF EXISTS `testtab`; CREATE TABLE `testtab` ( `Col1` float NOT NULL, `Col2` varchar(10) default NULL, PRIMARY KEY (`Col1`)) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `testtab` values (1.11, "Row1"), (2.22, "Row2"), (3.333, "Row3"), (4.4444, "Row4"); MS Access, GetExternalData (System DSN and File DSN behave the same), if tables are imported there's no error. If tables are Linked first two rows appear with text #DELETED in both fields. MyODBC 3.51.12, MS Access 2003, WinXP SP2.
[30 Mar 2006 6:12]
Grace Coronado
Is there any way to workaround this problem (e.g., adding timestamp field)? Or will it be solved in future release of MyODBC? Thanks for your reply.
[30 Mar 2006 13:41]
Tonci Grgin
Right now I am not sure why this happens. We'll make a note here when we learn more.
[27 Apr 2007 18:21]
Jim Winstead
This is a duplicate of Bug #13540. (DOUBLE or FLOAT as a primary key is a bad idea, because these are inexact numeric types.)