~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blitzdb/tests/t/blitzdb-alter.test

  • Committer: Monty Taylor
  • Date: 2010-06-18 17:03:01 UTC
  • mfrom: (1239.3.124 merger)
  • Revision ID: mordred@inaugust.com-20100618170301-2rr20efiqgi1zdme
Merged in BlitzDB.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test Suite for ALTER TABLE syntax
 
2
 
 
3
--disable_warnings
 
4
drop table if exists t1;
 
5
--enable_warnings
 
6
 
 
7
# Test Case for Bug:588487 from Patric Crews
 
8
# Using 'ALTER TABLE <> ENABLE KEYS' on a BlitzDB table locks up the server
 
9
 
 
10
--warning 1071
 
11
CREATE TABLE `t1` (
 
12
  `col_varchar_10_key` varchar(10),
 
13
  `col_varchar_10` varchar(10),
 
14
  `col_int` int,
 
15
  `col_varchar_1024_key` varchar(1024),
 
16
  `col_varchar_1024` varchar(1024),
 
17
  `col_int_key` int,
 
18
  pk integer auto_increment,
 
19
  /*Indices*/
 
20
  key (`col_varchar_10_key` ),
 
21
  key (`col_varchar_1024_key` ),
 
22
  key (`col_int_key` ),
 
23
  primary key (pk)
 
24
) ENGINE=blitzdb ;
 
25
 
 
26
--error 1112
 
27
ALTER TABLE `t1` DISABLE KEYS;
 
28
--error 1112
 
29
ALTER TABLE `t1` ENABLE KEYS;
 
30
 
 
31
DROP TABLE `t1`;