~ubuntu-branches/ubuntu/vivid/drizzle/vivid

« back to all changes in this revision

Viewing changes to tests/test_tools/randgen/conf/engines/falcon/falcon_replication.yy

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-10-29 15:43:40 UTC
  • mfrom: (20.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131029154340-j36v7gxq9tm1gi5f
Tags: 1:7.2.3-2ubuntu1
* Merge from debian, remaining changes:
  - Link against boost_system because of boost_thread.
  - Add required libs to message/include.am
  - Add upstart job and adjust init script to be upstart compatible.
  - Disable -floop-parallelize-all due to gcc-4.8/4.9 compiler ICE
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57732

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
        insert | update | delete | transaction | load_data_infile;
 
20
 
 
21
 
 
22
transaction:
 
23
        START TRANSACTION | COMMIT | ROLLBACK |
 
24
        SAVEPOINT A | ROLLBACK TO SAVEPOINT A | RELEASE SAVEPOINT A |
 
25
        implicit_commit ;
 
26
 
 
27
implicit_commit:
 
28
        CREATE DATABASE implicit_commit ; CREATE TABLE implicit_commit . _letter SELECT * FROM _table LIMIT digit ; DROP DATABASE implicit_commit |
 
29
        SET AUTOCOMMIT = ON | SET AUTOCOMMIT = OFF |
 
30
        CREATE TABLE IF NOT EXISTS _letter ENGINE = engine SELECT * FROM _table LIMIT digit |
 
31
        RENAME TABLE _letter TO _letter |
 
32
        TRUNCATE TABLE _letter |
 
33
        DROP TABLE IF EXISTS _letter |
 
34
        LOCK TABLE _table WRITE ; UNLOCK TABLES ;
 
35
 
 
36
load_data_infile:
 
37
        SELECT * FROM _table ORDER BY _field LIMIT digit INTO OUTFILE tmpnam ; LOAD DATA INFILE tmpnam REPLACE INTO TABLE _table ;
 
38
 
 
39
insert:
 
40
        INSERT INTO _table ( _field , _field , _field , _field ) VALUES ( value , value , value , value ) |
 
41
        INSERT INTO _table ( _field , _field , _field ) VALUES ( value , value , value ) |
 
42
        INSERT INTO _table ( _field , _field ) VALUES ( value , value ) |
 
43
        INSERT INTO _table SELECT * FROM _table LIMIT digit ;
 
44
 
 
45
update:
 
46
        UPDATE _table SET _field = value where order_by limit ;
 
47
 
 
48
delete:
 
49
        DELETE FROM _table where LIMIT digit ;
 
50
 
 
51
where:
 
52
        WHERE _field > value |
 
53
        WHERE _field < value |
 
54
        WHERE _field = value ;
 
55
 
 
56
order_by:
 
57
        | ORDER BY _field ;
 
58
 
 
59
limit:
 
60
        | LIMIT digit ;
 
61
 
 
62
value:
 
63
        _digit | _letter | _english | _data | 
 
64
        _digit | _letter | _english | _data | NULL ;