~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/filesystem_engine/tests/t/rnd_pos.test

  • Committer: Monty Taylor
  • Date: 2011-03-09 20:59:40 UTC
  • mfrom: (2226.1.14 build)
  • Revision ID: mordred@inaugust.com-20110309205940-7f5mk6zba2u7bawa
Merged Dave - Filtered Replication docs
Merged Olaf - Refactoring work
Removed archive, blackhole, filesystem_engine, blitzdb, csv and pbxt from
the tree pre-GA as we have no interest in supporting them moving forward.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# borrowed from embbedded innodb test suite
3
 
#
4
 
 
5
 
--disable_warnings
6
 
DROP TABLE IF EXISTS t1;
7
 
--enable_warnings
8
 
 
9
 
--replace_result $DRIZZLETEST_VARDIR VARDIR
10
 
eval CREATE TABLE t1 (
11
 
  aufnr VARCHAR(12) NOT NULL DEFAULT '',
12
 
  plnfl VARCHAR(6) NOT NULL DEFAULT '',
13
 
  vornr VARCHAR(4) NOT NULL DEFAULT '',
14
 
  xstatus_vor INT NOT NULL DEFAULT '0'
15
 
) ENGINE=FILESYSTEM,FILE="$DRIZZLETEST_VARDIR/filesystem_ln/rnd_pos.data";
16
 
 
17
 
DELETE FROM t1;
18
 
 
19
 
INSERT INTO t1 VALUES ('40004712','000001','0010',9);
20
 
INSERT INTO t1 VALUES ('40004712','000001','0020',0);
21
 
 
22
 
UPDATE t1 SET t1.xstatus_vor = Greatest(t1.xstatus_vor,1) WHERE t1.aufnr =
23
 
"40004712" AND t1.plnfl = "000001" AND t1.vornr > "0010" ORDER BY t1.vornr
24
 
ASC LIMIT 1;
25
 
 
26
 
SELECT * FROM t1;
27
 
 
28
 
DELETE FROM t1;
29
 
DROP TABLE t1;