~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/ps_4heap.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################
 
2
#                                             #
 
3
#   Prepared Statements test on HEAP tables   #
 
4
#                                             #
 
5
###############################################
 
6
 
 
7
#    
 
8
# NOTE: PLEASE SEE ps_1general.test (bottom) 
 
9
#       BEFORE ADDING NEW TEST CASES HERE !!!
 
10
 
 
11
use test;
 
12
 
 
13
let $type= 'HEAP' ;
 
14
--disable_warnings
 
15
drop table if exists t1, t9 ;
 
16
--enable_warnings
 
17
eval create table t1
 
18
(
 
19
  a int, b varchar(30),
 
20
  primary key(a)
 
21
) engine = $type ;
 
22
 
 
23
--disable_warnings
 
24
drop table if exists t9;
 
25
--enable_warnings
 
26
# The used table type doesn't support BLOB/TEXT columns.
 
27
# (The server would send error 1163  .)
 
28
# So we use char(100) instead.
 
29
eval create table t9 
 
30
(
 
31
  c1  tinyint, c2  smallint, c3  mediumint, c4  int,
 
32
  c5  integer, c6  bigint, c7  float, c8  double,
 
33
  c9  double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
 
34
  c13 date, c14 datetime, c15 timestamp, c16 time,
 
35
  c17 year, c18 tinyint, c19 bool, c20 char,
 
36
  c21 char(10), c22 varchar(30), c23 varchar(100), c24 varchar(100),
 
37
  c25 varchar(100), c26 varchar(100), c27 varchar(100), c28 varchar(100),
 
38
  c29 varchar(100), c30 varchar(100), c31 enum('one', 'two', 'three'),
 
39
  c32 set('monday', 'tuesday', 'wednesday'),
 
40
  primary key(c1)
 
41
) engine = $type ;
 
42
-- source include/ps_renew.inc
 
43
 
 
44
-- source include/ps_query.inc
 
45
-- source include/ps_modify.inc
 
46
-- source include/ps_modify1.inc
 
47
-- source include/ps_conv.inc
 
48
 
 
49
drop table t1, t9;
 
50
 
 
51
# End of 4.1 tests