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

« back to all changes in this revision

Viewing changes to tests/randgen/conf/transactions/combinations.yy

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

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
#       1               2       3       4       5       6       
 
20
        transaction | update | insert | delete | select | replace ;
 
21
 
 
22
transaction:
 
23
        START TRANSACTION | COMMIT | ROLLBACK | SAVEPOINT A | ROLLBACK TO SAVEPOINT A ;
 
24
 
 
25
select:
 
26
        SELECT field_list FROM _table where group_by having order_by limit ;
 
27
 
 
28
field_list:
 
29
        * | _field , _field , _field , _field ;
 
30
 
 
31
update:
 
32
        UPDATE _table SET _field_no_pk = value where order_by limit ;
 
33
 
 
34
insert:
 
35
        INSERT INTO _table ( _field_no_pk ) VALUES ( value ) ;
 
36
 
 
37
delete:
 
38
        DELETE FROM _table where order_by LIMIT _digit ;
 
39
 
 
40
replace:
 
41
        REPLACE INTO _table ( _field_no_pk ) VALUES ( value ) ;
 
42
 
 
43
where:
 
44
        |
 
45
        WHERE _field operator value ;
 
46
 
 
47
group_by:
 
48
        |
 
49
        GROUP BY _field;
 
50
 
 
51
order_by:
 
52
        |
 
53
        ORDER BY _field;
 
54
 
 
55
having:
 
56
        |
 
57
        HAVING _field operator value ;
 
58
 
 
59
limit:
 
60
        |
 
61
        LIMIT _digit;
 
62
 
 
63
operator:
 
64
        > | < | >= | <= | <> ;
 
65
 
 
66
value:
 
67
        _digit | _timestamp | _english ;