~ubuntu-branches/ubuntu/trusty/drizzle/trusty-updates

« back to all changes in this revision

Viewing changes to tests/kewpie/randgen/conf/engines/falcon/falcon_ddl.yy

  • Committer: Package Import Robot
  • Author(s): Tobias Frost
  • Date: 2012-04-04 15:12:07 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120404151207-xwsgn1xegslle4p0
Tags: 1:7.1.32-rc-1
* New upstream release.
* Plugin-filtered-replicator upstream removed and will no longer be built.
* Updating d/*install files to accommodate upstream changes from drizzle7
  to drizzle
* Added symlink in libdrizzledmessage-dev to library
* libdrizzle: soname-bump
* Rename package drizzle-plugin-performance-dictionary to shorten package name
  (due to linitan warning package-has-long-file-name)
* Debian/control: removed unused substitution variable ${shlibs:Depends} for
  -dbg and -dev packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008 Sun Microsystems, Inc. All rights reserved.
 
2
# Use is subject to license terms.
 
3
#
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; version 2 of the License.
 
7
#
 
8
# This program is distributed in the hope that it will be useful, but
 
9
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
11
# General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
 
16
# USA
 
17
 
 
18
query:
 
19
        dml | dml | dml | dml | dml | dml | dml | dml | dml | dml |
 
20
        dml | dml | dml | dml | dml | dml | dml | dml | dml | dml |
 
21
        database | tablespace | table |
 
22
        alter | show | transaction | use ;
 
23
 
 
24
select:
 
25
        SELECT _field FROM _letter WHERE where_cond group_by limit;
 
26
 
 
27
dml:
 
28
        update | insert | select | delete ;
 
29
 
 
30
group_by:
 
31
        | GROUP BY _field ;
 
32
 
 
33
limit:
 
34
        | LIMIT _digit ;
 
35
 
 
36
where_cond:
 
37
        _field < _digit;
 
38
 
 
39
insert:
 
40
        INSERT INTO _letter ( _field , _field ) VALUES ( _digit , _digit ) ;
 
41
 
 
42
update:
 
43
        UPDATE _letter SET _field = _digit WHERE where_cond limit ;
 
44
 
 
45
delete:
 
46
        DELETE FROM _letter WHERE where_cond LIMIT _digit;
 
47
 
 
48
transaction:
 
49
        START TRANSACTION | COMMIT | ROLLBACK | SAVEPOINT A | ROLLBACK TO SAVEPOINT A ;
 
50
 
 
51
use:
 
52
        USE _letter ;
 
53
 
 
54
database:
 
55
        create_database | create_database | create_database | create_database | create_database |
 
56
        drop_database ;
 
57
 
 
58
create_database:
 
59
        CREATE DATABASE IF NOT EXISTS _letter ;
 
60
 
 
61
drop_database:
 
62
        DROP DATABASE IF EXISTS _letter ;
 
63
 
 
64
tablespace:
 
65
        create_tablespace | create_tablespace | create_tablespace | create_tablespace | create_tablespace |
 
66
        drop_tablespace ;
 
67
 
 
68
create_tablespace:
 
69
        CREATE TABLESPACE _letter ADD DATAFILE ' _letter . TABLESPACE ' ENGINE = Falcon ;
 
70
 
 
71
drop_tablespace:
 
72
        DROP TABLESPACE _letter ENGINE = Falcon ;
 
73
 
 
74
table:
 
75
        create_table | create_table | create_table | create_table | create_table |
 
76
        drop_table | rename_table | truncate_table ;
 
77
 
 
78
create_table:
 
79
        CREATE TEMPORARY TABLE IF NOT EXISTS _letter TABLESPACE _letter SELECT * FROM _letter |
 
80
        CREATE TABLE IF NOT EXISTS _letter (`pk` INTEGER AUTO_INCREMENT NOT NULL , PRIMARY KEY (`pk`) ) TABLESPACE _letter |
 
81
        CREATE TABLE IF NOT EXISTS _letter (`pk` INTEGER ) partition ;
 
82
 
 
83
drop_table:
 
84
        DROP TABLE IF EXISTS _letter ;
 
85
 
 
86
rename_table:
 
87
        RENAME TABLE _letter TO _letter |
 
88
        RENAME TABLE _letter . _letter TO _letter . _letter ;
 
89
 
 
90
truncate_table:
 
91
        TRUNCATE TABLE _letter ;
 
92
 
 
93
alter:
 
94
        ALTER TABLE _letter ADD PARTITION (PARTITION _letter VALUES LESS THAN ( _tinyint_unsigned ) TABLESPACE _letter ) |
 
95
        ALTER TABLE _letter DROP PARTITION _letter |
 
96
        ALTER TABLE _letter REORGANIZE PARTITION _letter INTO (
 
97
                PARTITION _letter VALUES LESS THAN ( _digit ) TABLESPACE _letter ,
 
98
                PARTITION _letter VALUES LESS THAN ( _tinyint_unsigned ) TABLESPACE _letter 
 
99
        ) |
 
100
        ALTER TABLE _letter REMOVE PARTITIONING |
 
101
        ALTER TABLE _letter partition ;
 
102
 
 
103
partition:
 
104
        PARTITION BY KEY(`pk`) |
 
105
        PARTITION BY RANGE (`pk`) (
 
106
                PARTITION _letter VALUES LESS THAN ( _digit ) TABLESPACE _letter ,
 
107
                PARTITION _letter VALUES LESS THAN ( _tinyint_unsigned ) TABLESPACE _letter ,
 
108
                PARTITION _letter VALUES LESS THAN MAXVALUE TABLESPACE _letter
 
109
        ) ;
 
110
 
 
111
show:
 
112
        SHOW TABLE STATUS |
 
113
        SELECT * FROM INFORMATION_SCHEMA.SCHEMATA |
 
114
        DESCRIBE _letter ;