mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
bug#10466: Datatype "timestamp" displays "YYYYMMDDHHMMSS" irrespective of display sizes.
- Print warning that says display width is not supported for datatype TIMESTAMP, if user tries to create a TIMESTAMP column with display width. - Use display width for TIMESTAMP only in type_timestamp test to make sure warning is displayed correctly.
This commit is contained in:
@ -58,7 +58,7 @@ ushows int(10) unsigned DEFAULT '0' NOT NULL,
|
||||
clicks int(10) unsigned DEFAULT '0' NOT NULL,
|
||||
iclicks int(10) unsigned DEFAULT '0' NOT NULL,
|
||||
uclicks int(10) unsigned DEFAULT '0' NOT NULL,
|
||||
ts timestamp(14),
|
||||
ts timestamp,
|
||||
PRIMARY KEY (place_id,ts)
|
||||
);
|
||||
INSERT INTO t1 (place_id,shows,ishows,ushows,clicks,iclicks,uclicks,ts)
|
||||
@ -75,7 +75,7 @@ client varchar(255) NOT NULL default '',
|
||||
replyto varchar(255) NOT NULL default '',
|
||||
subject varchar(100) NOT NULL default '',
|
||||
timestamp int(10) unsigned NOT NULL default '0',
|
||||
tstamp timestamp(14) NOT NULL,
|
||||
tstamp timestamp NOT NULL,
|
||||
status int(3) NOT NULL default '0',
|
||||
type varchar(15) NOT NULL default '',
|
||||
assignment int(10) unsigned NOT NULL default '0',
|
||||
|
Reference in New Issue
Block a user