# 初期化中にエラーを発生させる
#
# このスクリプトのファイルアクセス(新たに生成されるページのインスタンス)は
# 以下のようになっている。
#
# 初期化
#	論理ログ		2ページ
# 最初のselect文
#	スキーマ情報		139ページ
#	レコードのFixed		7ページ
# 2番目のselect文
#	レコードのVariable	7ページ
# 3番目のselect文
#	B木			4ページ
#	ベクター		4ページ
#	B木			1ページ
#	ベクター		3ページ

Begin;
SetSystemParameter "Exception_FakeError" "Buffer::Page::attach count=(146 152 156 162 165)";

Initialize;
InitializeSession "TEST";
# レコードのFixedのヘッダーでエラー
Command "select A from T";
# レコードのVariableの1ページ目でエラー
Command "select B from T";
# B木のヘッダーでエラー
Command "select * from T where A = 2";
# ベクターのヘッダーでエラー
Command "select * from T where A = 2";
# 物理ページのヘッダーでエラー
Command "select * from T where A = 2";
TerminateSession;
Terminate;

SetSystemParameter "Exception_FakeError" "";
End;
