~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/archive.test

  • Committer: Brian Aker
  • Date: 2009-12-06 01:55:53 UTC
  • mfrom: (1238.1.5 push)
  • Revision ID: brian@gaz-20091206015553-cva833q4gvwj11ob
Bundle for staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Simple test for archive example
3
3
# Taken FROM the select test
4
4
#
 
5
-- source include/have_archive.inc
5
6
 
6
7
--disable_warnings
7
8
DROP TABLE if exists t1,t2,t3,t4,t5,t6;
1333
1334
#
1334
1335
# For bug #12836
1335
1336
# Delete was allowing all rows to be removed
1336
 
--error ER_ILLEGAL_HA
 
1337
--error 1031
1337
1338
DELETE FROM t2;
1338
1339
SELECT * FROM t2;
1339
1340
INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
1340
1341
INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1341
1342
INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
1342
1343
SELECT * FROM t2;
1343
 
--error ER_ILLEGAL_HA
 
1344
--error 1031
1344
1345
TRUNCATE TABLE t2;
1345
1346
SELECT * FROM t2;
1346
1347
 
1370
1371
INSERT INTO t5 VALUES (NULL, "foo");
1371
1372
INSERT INTO t5 VALUES (NULL, "foo");
1372
1373
INSERT INTO t5 VALUES (32, "foo");
1373
 
--error ER_DUP_KEY
 
1374
--error 1022
1374
1375
INSERT INTO t5 VALUES (23, "foo");
1375
1376
INSERT INTO t5 VALUES (NULL, "foo");
1376
1377
INSERT INTO t5 VALUES (NULL, "foo");
1377
 
--error ER_DUP_KEY
 
1378
--error 1022
1378
1379
INSERT INTO t5 VALUES (3, "foo");
1379
1380
INSERT INTO t5 VALUES (NULL, "foo");
1380
1381
SELECT * FROM t5;