Bug #709 LEFT and CREATE TABLE ... SELECT
| Submitted: | 24 Jun 2003 5:12 | Modified: | 3 Jul 2003 0:43 |
|---|---|---|---|
| Reporter: | Per Steinar Iversen | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 4.0.13 | OS: | Linux (RedHat 7.3, fully updated) |
| Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[24 Jun 2003 5:12]
Per Steinar Iversen
[24 Jun 2003 18:30]
Alexander Keremidarski
mysql> CREATE TABLE test2 SELECT LEFT(mac,8) FROM test1 LIMIT 5; mysql> SHOW CREATE TABLE test2; CREATE TABLE `test2` ( `LEFT(mac,8)` char(0) default NULL ) TYPE=MyISAM Column is created as CHAR(0) which obviously can't hold anything but empty string.
[24 Jun 2003 18:30]
Alexander Keremidarski
mysql> CREATE TABLE test2 SELECT LEFT(mac,8) FROM test1 LIMIT 5; mysql> SHOW CREATE TABLE test2; CREATE TABLE `test2` ( `LEFT(mac,8)` char(0) default NULL ) TYPE=MyISAM Column is created as CHAR(0) which obviously can't hold anything but empty string.
[24 Jun 2003 18:55]
Alexander Keremidarski
Tested with 4.0 from BK tree ChangeSet@1.1536.3.2, 2003-06-24 17:07:43+05:00, hf@deer.(none) Test case for bug #666
[3 Jul 2003 0:43]
Alexey Botchkov
It seems like it was fixed meanwhile.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.