Bug #29866 | Uninitialized TEXT NOT NULL (with no default value set) column behavoiur | ||
---|---|---|---|
Submitted: | 18 Jul 2007 9:44 | Modified: | 18 Aug 2007 10:51 |
Reporter: | Maciej Dobrzanski | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.0.41 | OS: | Linux |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | BLOB, empty string, null, text |
[18 Jul 2007 9:44]
Maciej Dobrzanski
[18 Jul 2007 9:47]
Maciej Dobrzanski
mysql> SELECT IF(0,CONCAT('x'),t) FROM t6; +---------------------+ | IF(0,CONCAT('x'),t) | +---------------------+ | | +---------------------+ 1 row in set (0.00 sec) 5.1.20 does not seem to be affected by this.
[18 Jul 2007 10:16]
Maciej Dobrzanski
I've just remembered that TEXT/BLOB columns can't have default values. So I created this struecture: mysql> CREATE TABLE `t6` (`t` text NULL) ENGINE=MyISAM; Query OK, 0 rows affected (0.00 sec) And inserted there an empty string (which is in my opinion definitely non-null) mysql> insert into t6 values (''); Query OK, 1 row affected (0.00 sec) mysql> SELECT t FROM t6; +------+ | t | +------+ | NULL | +------+ 1 row in set (0.00 sec) mysql> SELECT CONCAT(t) FROM t6; +-----------+ | CONCAT(t) | +-----------+ | NULL | +-----------+ 1 row in set (0.00 sec)
[18 Jul 2007 10:51]
Sveta Smirnova
Thank you for the report. I can not repeat described behaviour. Please provide your configuration file.
[18 Aug 2007 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".