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

« back to all changes in this revision

Viewing changes to tests/kewpie/randgen/conf/replication/WL5092_data.zz

  • 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) 2009-2010 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
 
# Attention: If you modify something under $tables than the amount and the names of
19
 
#            the tables will change and this requires adjustments in
20
 
#            conf/replication/replication-dml_sql.yy   *_table
21
 
#
22
 
$schemas = [ 'test' ];
23
 
 
24
 
$tables = {
25
 
        # Example: table<rows>
26
 
        rows => [ 300 ] ,
27
 
        #
28
 
        # partitions => [ undef , 'KEY (pk) PARTITIONS 2' ] ,
29
 
        #    Currently not tested
30
 
        #
31
 
        # Example: table<rows> , table<rows>_<engine>
32
 
        engines => [ 'MyISAM' , 'InnoDB' ] ,
33
 
        #    
34
 
        # Example: table<rows>_<engine>_<pk column data type> like table0_myisam_int_autoinc
35
 
        # The preferred PK variation is within the next line.
36
 
        #    pk => [ 'int auto_increment' , 'int' , undef ]
37
 
        #
38
 
        # Enable
39
 
        # - "undef" when the RPL team says it is time to do this
40
 
        # - "auto_increment" when
41
 
        #    Bug#50619 assert in handler::update_auto_increment
42
 
        #    Bug#46902 Assertion failed: next_insert_id >= auto_inc_interval_for_cur_row.minimum()
43
 
        #    are fixed
44
 
        # and modify conf/replication/replication-ddl_sql.yy so that tables with names like
45
 
        # table<number> and table<number>_<engine> are used.
46
 
        # 
47
 
        pk   => [ 'int auto_increment' ]
48
 
};
49
 
 
50
 
$fields = {
51
 
 
52
 
   # a) CHAR(25)     - constant length   sqlmode PAD WITH SPACES...
53
 
   # b) VARCHAR(25)  - less than 255 characters
54
 
   # c) VARCHAR(257) - more than 255 characters
55
 
   # d) BIT ...      - less than 1 Byte
56
 
   # e) BIGINT       - it's so simple and useful for keys
57
 
   # f) DECIMAL      - non easy structure but maybe not important
58
 
   # g) FLOAT        - non easy structure but maybe not important
59
 
   # h) BLOB         - special treatment if BINLOG_ROW_IMAGE = noblob
60
 
        types => [
61
 
        # Numeric
62
 
           'bit(4)' , 'bit(64)' ,
63
 
           'tinyint' , 'bigint' ,
64
 
           'double' ,
65
 
           #
66
 
           # decimal(M,N) is not supported by RQG. I would have taken decimal(65,30),decimal(10,0).
67
 
           # Enable the next line in case
68
 
           #    Bug#49533 Overflow in DECIMAL, SBR out of sync
69
 
           #    Bug#53643 assert in Field_new_decimal::store_value on slave server
70
 
           # is fixed.
71
 
           # 'decimal(35)' ,
72
 
        # String
73
 
        # Manual: Specifying the CHARACTER SET binary attribute for a character data type causes
74
 
        #         the column to be created as the corresponding binary data type:
75
 
        #         CHAR becomes BINARY, VARCHAR becomes VARBINARY, and TEXT becomes BLOB.
76
 
        # We do not mention *BINARY and BLOB here + but have 'binary' between the charsets.
77
 
           'char(25)',
78
 
           'varchar(25)',
79
 
           'tinytext'
80
 
                   ] ,
81
 
        indexes  => [ undef ] ,
82
 
        null => [ 'default null' , 'not null' ] ,
83
 
        # default => [ undef , 'default null' ] ,
84
 
        sign     => [ undef ] ,
85
 
        charsets => [ undef , 'binary' ]
86
 
};
87
 
 
88
 
$data = {
89
 
        numbers   => [ 'digit' , 'null' , undef ],
90
 
        strings   => [ 'letter' , 'english' , 'null' ],
91
 
        blobs     => [ 'english', 'data' ],
92
 
        temporals => [ undef , 'null' , 'time' , 'date' , 'datetime' , 'year(2)' , 'year(4)' , 'timestamp' ]
93
 
}