2004-07-01 16:30:29 +02:00
|
|
|
############### include/ps_create.inc ##################
|
|
|
|
# #
|
|
|
|
# drop + create the tables used in most PS test cases #
|
2004-07-02 20:01:34 +02:00
|
|
|
# t/ps_*.test #
|
2004-07-01 16:30:29 +02:00
|
|
|
# #
|
|
|
|
########################################################
|
|
|
|
|
2004-07-02 20:01:34 +02:00
|
|
|
#
|
|
|
|
# NOTE: PLEASE SEE ps_1general.test (bottom)
|
|
|
|
# BEFORE ADDING NEW TABLES HERE !!!
|
|
|
|
#
|
|
|
|
# Please be aware, that this file will be sourced by several
|
|
|
|
# test case files stored within the subdirectory 't'.
|
|
|
|
# So every change here will affect several test cases.
|
|
|
|
|
|
|
|
#----------- Please insert your table definitions here ----------#
|
|
|
|
|
|
|
|
|
|
|
|
#---- Please do not alter the following table definitions -------#
|
|
|
|
|
2004-07-01 16:30:29 +02:00
|
|
|
--disable_warnings
|
2004-09-25 17:08:02 +02:00
|
|
|
drop table if exists t1, t9 ;
|
2004-07-01 16:30:29 +02:00
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
eval create table t1
|
|
|
|
(
|
|
|
|
a int, b varchar(30),
|
|
|
|
primary key(a)
|
|
|
|
) engine = $type ;
|
|
|
|
|
2004-09-25 17:08:02 +02:00
|
|
|
eval create table t9
|
2004-07-01 16:30:29 +02:00
|
|
|
(
|
|
|
|
c1 tinyint, c2 smallint, c3 mediumint, c4 int,
|
|
|
|
c5 integer, c6 bigint, c7 float, c8 double,
|
|
|
|
c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
|
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.
mysql-test/include/ps_create.inc:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/alias.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/func_date_add.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/func_str.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/func_time.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/group_by.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/innodb.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_1general.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_2myisam.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_3innodb.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_4heap.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_5merge.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_6bdb.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/ps_7ndb.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/select.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/r/type_timestamp.result:
When display width is used for a TIMESTAMP column a warning is printed that the display width will be ignored.
mysql-test/r/update.result:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/alias.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/func_date_add.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/func_str.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/func_time.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/group_by.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/innodb.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/ps.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/ps_4heap.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/ps_5merge.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/select.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
mysql-test/t/update.test:
Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test.
sql/share/errmsg.txt:
Correct swedish error message
sql/sql_parse.cc:
Print warning if datatype is TIMESTAMP and display width is used.
2005-06-20 12:09:00 +02:00
|
|
|
c13 date, c14 datetime, c15 timestamp, c16 time,
|
2004-12-17 14:27:39 +01:00
|
|
|
c17 year, c18 tinyint, c19 bool, c20 char,
|
2004-07-01 16:30:29 +02:00
|
|
|
c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
|
|
|
|
c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
|
|
|
|
c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
|
|
|
|
c32 set('monday', 'tuesday', 'wednesday'),
|
|
|
|
primary key(c1)
|
|
|
|
) engine = $type ;
|