Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL)
-
None
Description
DROP TABLE IF EXISTS t1; |
DELIMITER $$
|
BEGIN NOT ATOMIC |
DECLARE var TEXT CHARACTER SET utf8; |
CREATE TABLE t1 AS SELECT var; |
END; |
$$
|
DELIMITER ;
|
SHOW CREATE TABLE t1; |
+-------+---------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+---------------------------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`var` mediumtext CHARACTER SET utf8 DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+---------------------------------------------------------------------------------------------------------------+
|
Notice, the column data type in the table does not match the variable data type.
The expected data type for t1.var should be TEXT CHARACTER SET utf8 rather than MEDIUMTEXT CHARACTER SET utf8.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
-
- Closed
-
- relates to
-
MDEV-13232 Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->thread)' failed in _ma_state_info_write
-
- Closed
-
Activity
Link |
This issue relates to |
Summary | Wrong data type on CREATE..SELECT text_spvar | Wrong data type on CREATE..SELECT enum_or_text_spvar |
Summary | Wrong data type on CREATE..SELECT enum_or_text_spvar | Wrong data type on CREATE..SELECT char_or_enum_or_text_spvar |
issue.field.resolutiondate | 2018-04-22 11:53:14.0 | 2018-04-22 11:53:14.583 |
Fix Version/s | 10.3.7 [ 23005 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 86698 ] | MariaDB v4 [ 154210 ] |