~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test archive engine when symbolic links are not available.
 
2
--source include/have_archive.inc
 
3
 
 
4
--echo #
 
5
--echo # This test shows that DATA DIRECTORY and INDEX DIRECTORY are
 
6
--echo # ignored where symbolic links are not supported such as Windows.
 
7
--echo #
 
8
 
 
9
let $data_directory = DATA DIRECTORY = '$MYSQL_TMP_DIR/archive';
 
10
let $index_directory = INDEX DIRECTORY = '$MYSQL_TMP_DIR/archive';
 
11
 
 
12
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
 
13
eval CREATE TABLE t1 (
 
14
  c1 int(10) unsigned NOT NULL AUTO_INCREMENT,
 
15
  c2 varchar(30) NOT NULL,
 
16
  c3 smallint(5) unsigned DEFAULT NULL,
 
17
  PRIMARY KEY (c1))
 
18
ENGINE = archive
 
19
$data_directory $index_directory;
 
20
 
 
21
INSERT INTO t1 VALUES (NULL, "first", 1);
 
22
INSERT INTO t1 VALUES (NULL, "second", 2);
 
23
INSERT INTO t1 VALUES (NULL, "third", 3);
 
24
SHOW CREATE TABLE t1;
 
25
DROP TABLE t1;
 
26