1############### include/ps_create.inc ##################
2#                                                      #
3#  drop + create the tables used in most PS test cases #
4#         t/ps_*.test                                  #
5#                                                      #
6########################################################
7
8#
9# NOTE: PLEASE SEE ps_1general.test (bottom)
10#       BEFORE ADDING NEW TABLES HERE !!!
11#
12# Please be aware, that this file will be sourced by several
13# test case files stored within the subdirectory 't'.
14# So every change here will affect several test cases.
15
16#----------- Please insert your table definitions here ----------#
17
18
19#---- Please do not alter the following table definitions -------#
20
21--disable_warnings
22drop table if exists t1, t9 ;
23--enable_warnings
24
25eval create table t1
26(
27  a int, b varchar(30),
28  primary key(a)
29) engine = $type ;
30
31eval create table t9
32(
33  c1  tinyint, c2  smallint, c3  mediumint, c4  int,
34  c5  integer, c6  bigint, c7  float, c8  double,
35  c9  double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
36  c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
37  ON UPDATE CURRENT_TIMESTAMP, c16 time,
38  c17 year, c18 tinyint, c19 bool, c20 char,
39  c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
40  c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
41  c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
42  c32 set('monday', 'tuesday', 'wednesday'),
43  primary key(c1)
44) engine = $type ;
45