[MDEV-8659] Conflicting declaration is accepted: INT SIGNED ZEROFILL Created: 2015-08-21  Updated: 2017-08-14  Resolved: 2017-08-14

Status: Closed
Project: MariaDB Server
Component/s: Parser
Affects Version/s: 5.5, 10.0, 10.1
Fix Version/s: 10.2.8

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT SIGNED ZEROFILL);
INSERT INTO t1 VALUES (-1);
SHOW CREATE TABLE t1;

+-------+---------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                            |
+-------+---------------------------------------------------------------------------------------------------------+
| t1    | CREATE TABLE `t1` (
  `a` int(10) unsigned zerofill DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+---------------------------------------------------------------------------------------------------------+

I.e. the "SIGNED" keyword was silently ignored.

The expected behavior is to return an error.


Generated at Thu Feb 08 07:28:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.