Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
DROP PROCEDURE IF EXISTS p1; |
DELIMITER $$
|
CREATE PROCEDURE p1() |
BEGIN
|
DECLARE a YEAR; |
CREATE OR REPLACE TABLE t1 AS SELECT a; |
SHOW CREATE TABLE t1; |
DROP TABLE t1; |
END; |
$$
|
DELIMITER ;
|
CALL p1;
|
+-------+-----------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+-----------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`a` int(4) unsigned DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+-----------------------------------------------------------------------------------------------+
|
The data type for t1.a is wrong. The expected type is YEAR.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
- duplicates
-
MDEV-12876 Wrong data type for CREATE..SELECT sp_var
- Closed