Bug #16149 | Invalid result is returned when the column contains negative values | ||
---|---|---|---|
Submitted: | 3 Jan 2006 10:09 | Modified: | 18 Jun 2006 21:21 |
Reporter: | Bhuvaneswaran Arumugam | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S2 (Serious) |
Version: | 5.0.18 | OS: | Linux (Redhat Enterprise Linux 3) |
Assigned to: | CPU Architecture: | Any |
[3 Jan 2006 10:09]
Bhuvaneswaran Arumugam
[3 Jan 2006 11:00]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of SHOW CREATE TABLE metric_name statement.
[3 Jan 2006 11:08]
Bhuvaneswaran Arumugam
Sure. The output of SHOW CREATE TABLE metric_name is as follows: CREATE TABLE `metric_name` ( `metric_name_id` int(11) NOT NULL auto_increment, `metric_name` varchar(255) NOT NULL default '', `metric_category` varchar(255) NOT NULL default '', `metric_name_type` enum('NUMBER','STRING','PERCENT') NOT NULL default 'NUMBER', `project_based` tinyint(1) NOT NULL default '0', `metric_attr_type_id` int(11) default NULL, PRIMARY KEY (`metric_name_id`), UNIQUE KEY `metric_name` (`metric_name`), KEY `metric_attr_type_id` (`metric_attr_type_id`), KEY `i_mn_metric_name` (`metric_name`), CONSTRAINT `metric_name_ibfk_1` FOREIGN KEY (`metric_attr_type_id`) REFERENCES `metric_attr_type` (`metric_attr_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 Should you require more info, please let me know.
[11 Jan 2006 16:53]
Valeriy Kravchuk
I need SHOW CREATE TABLE metric_attr_type results (because of that foreign key). Some test data may be also useful. Have you tried to repeat with the newer version, 5.0.18?
[20 Jan 2006 5:34]
Bhuvaneswaran Arumugam
Yep, i have tested in 5.0.18 and the problem is repeated. Here is the output of SHOW CREATE TABLE metric_attr_type. CREATE TABLE `metric_attr_type` ( `metric_attr_type_id` int(11) NOT NULL auto_increment, `metric_attr_type_name` varchar(255) NOT NULL default '', PRIMARY KEY (`metric_attr_type_id`), KEY `i_man_metric_attr_type` (`metric_attr_type_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 FWIW, the problem is repeatable even if the table donot contain reference to any other table.
[20 Jan 2006 10:34]
Aleksey Kishkin
was not able to reproduce it... Could you check attached testcase? ./bug16149.pl $VAR1 = [ [ '-4', 'testing..' ] ]; $VAR1 = [ [ '5.0.18-max' ] ];
[20 Jan 2006 10:35]
Aleksey Kishkin
testcase I used
Attachment: bug16149.pl (application/x-perl, text), 1.26 KiB.
[20 Jan 2006 10:38]
Aleksey Kishkin
I used DBD::mysql 3.0002 from cpan
[21 Feb 2006 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[18 May 2006 21:21]
Valeriy Kravchuk
Please, try to repeat with a newer version of server, 5.0.21, using your test case or http://bugs.mysql.com/file.php?id=2755 Alexey uploaded, and inform about the results.
[18 Jun 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".