## -*-Mode: text; tab-width: 4; c-basic-offset: 4;-*-
## vi:set ts=4 sw=4:
##
## 8204.txt -- table 作成のテスト
##
##	TEST CONTENTS
##		table の作成とindexの作成を同時に行う
##
##	START CONDITIONS
##		特に無し
##		
##	END CONDITIONS
##		start 前と同じ
##
##	CHECK
##		create indexの動作が正しい
##
##	NOTE
##		マルチスレッド
##		正常系
##		Schema の単体テストも兼ねる
##
## Copyright (c) 2001-2003 Ricoh Company, Ltd.
## All rights reserved.
##
##		$Author$
##		$Date$
##		$Revision$
##
Begin;
BeginTimeSpan;
Initialize;
EndTimeSpan;

# 準備

InitializeSession "";
Command "create database DB_xxxx";
TerminateSession;

InitializeSession 1 "DB_xxxx";
InitializeSession 2 "DB_xxxx";

# create table しながら create index
CreateThread "CreateTable";
CreateThread "CreateIndex";
JoinThread "CreateTable";
JoinThread "CreateIndex";

TerminateSession 1;
TerminateSession 2;

# 後片付け
#InitializeSession "DB_xxxx";
#Command "drop database DB_xxxx";
#TerminateSession;

# (障害回復を試すためTerminateしない)
End;

#-----------------------------------------------------------------------------------------------

CreateTable
{
Command 1 "create table TBL1 (C int)";
}

CreateIndex
{
Command 2 "create index IDX1 on TBL1(C)";
Command 2 "create index IDX2 on TBL1(C)";
Command 2 "create index IDX3 on TBL1(C)";
}

