1# Copyright(C) 2013 Kentoku SHIBA
2#
3# This library is free software; you can redistribute it and/or
4# modify it under the terms of the GNU Lesser General Public
5# License as published by the Free Software Foundation; either
6# version 2.1 of the License, or (at your option) any later version.
7#
8# This library is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11# Lesser General Public License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public
14# License along with this library; if not, write to the Free Software
15# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1335  USA
16
17--source ../../include/mroonga/have_mroonga.inc
18
19--disable_warnings
20drop table if exists t1;
21--enable_warnings
22
23create table t1 (c1 int auto_increment, primary key(c1)) auto_increment=34129;
24insert into t1 values(null);
25select c1 from t1 order by c1 desc;
26show create table t1;
27insert into t1 values(null);
28select c1 from t1 order by c1 desc;
29insert into t1 values(10);
30select c1 from t1 order by c1 desc;
31insert into t1 values(null);
32select c1 from t1 order by c1 desc;
33insert into t1 values(6);
34select c1 from t1 order by c1 desc;
35insert into t1 values(null);
36select c1 from t1 order by c1 desc;
37truncate table t1;
38insert into t1 values(null);
39select c1 from t1 order by c1 desc;
40delete from t1;
41insert into t1 values(null);
42select c1 from t1 order by c1 desc;
43rename table t1 to t2;
44insert into t2 values(null);
45select c1 from t2 order by c1 desc;
46show create table t2;
47drop table t2;
48
49--source ../../include/mroonga/have_mroonga_deinit.inc
50