Bug #9723 | mixed char/varchar columns forces char columns to become varchar type | ||
---|---|---|---|
Submitted: | 7 Apr 2005 15:22 | Modified: | 25 Feb 2010 3:08 |
Reporter: | Christoph Koeppen | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | Ver 14.7 Distrib 4.1.10a, for Win95/Win9 | OS: | Windows (XP64(beta)) |
Assigned to: | CPU Architecture: | Any |
[7 Apr 2005 15:22]
Christoph Koeppen
[7 Apr 2005 17:18]
Jorge del Conde
Hi, This behaviour is explained here: http://dev.mysql.com/doc/mysql/en/silent-column-changes.html
[25 Jan 2010 3:08]
Roel Van de Paar
This cannot be repeated on MySQL 5.1.42: --------- mysql> EXPLAIN mixed_char_varchar_bug1; +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | c_char | char(1) | YES | | NULL | | | c_varchar | varchar(10) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> EXPLAIN mixed_char_varchar_bug2; +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | c_char | char(2) | YES | | NULL | | | c_varchar | varchar(10) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ 2 rows in set (0.00 sec) mysql> EXPLAIN mixed_char_varchar_bug3; +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | c_char | char(3) | YES | | NULL | | | c_varchar | varchar(10) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ 2 rows in set (0.01 sec) mysql> EXPLAIN mixed_char_varchar_bug4; +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | c_char | char(4) | YES | | NULL | | | c_varchar | varchar(10) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ 2 rows in set (0.01 sec) --------- Could you verify this is still happening for you, and if so, can you provide more details?
[26 Feb 2010 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".