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

« back to all changes in this revision

Viewing changes to tests/r/randgen_queries.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
key (`col_char_not_null_key` ),
43
43
key (`col_text_key`  (255)),
44
44
key (`col_enum_key` )) ENGINE=innodb;
45
 
Warnings:
46
 
Warning 1071    Specified key was too long; max key length is 767 bytes
47
 
Warning 1071    Specified key was too long; max key length is 767 bytes
48
45
set AUTOCOMMIT=OFF;
49
 
select table_schema, 
 
46
select SQL_BIG_RESULT table_schema, 
50
47
table_name, 
51
48
CASE WHEN table_type = 'STANDARD' THEN 'table' 
52
49
WHEN table_type = 'FUNCTION' then 'function' 
53
50
ELSE 'misc' END, 
54
51
column_name,
55
 
CASE WHEN IS_USED_IN_PRIMARY = 'TRUE' THEN 'primary' 
56
 
WHEN IS_INDEXED = 'TRUE' THEN 'indexed' 
 
52
CASE WHEN IS_USED_IN_PRIMARY = 'YES' THEN 'primary' 
 
53
WHEN IS_INDEXED = 'YES' THEN 'indexed' 
57
54
ELSE 'indexed' END 
58
55
FROM data_dictionary.tables INNER JOIN
59
 
data_dictionary.columns USING(table_schema, table_name) limit 20;
 
56
data_dictionary.columns USING(table_schema, table_name) ORDER BY table_schema, table_name limit 20;
60
57
table_schema    table_name      CASE WHEN table_type = 'STANDARD' THEN 'table' 
61
58
WHEN table_type = 'FUNCTION' then 'function' 
62
 
ELSE 'misc' END column_name     CASE WHEN IS_USED_IN_PRIMARY = 'TRUE' THEN 'primary' 
63
 
WHEN IS_INDEXED = 'TRUE' THEN 'indexed' 
 
59
ELSE 'misc' END column_name     CASE WHEN IS_USED_IN_PRIMARY = 'YES' THEN 'primary' 
 
60
WHEN IS_INDEXED = 'YES' THEN 'indexed' 
64
61
ELSE 'indexed' END 
65
62
 
66
 
data_dictionary CHARACTER_SETS  function        CHARACTER_SET_NAME      indexed
67
 
data_dictionary CHARACTER_SETS  function        DEFAULT_COLLATE_NAME    indexed
68
 
data_dictionary CHARACTER_SETS  function        DESCRIPTION     indexed
69
 
data_dictionary CHARACTER_SETS  function        MAXLEN  indexed
70
 
data_dictionary COLLATIONS      function        CHARACTER_SET_NAME      indexed
71
 
data_dictionary COLLATIONS      function        COLLATION_NAME  indexed
72
 
data_dictionary COLLATIONS      function        DESCRIPTION     indexed
73
 
data_dictionary COLLATIONS      function        ID      indexed
74
 
data_dictionary COLLATIONS      function        IS_DEFAULT      indexed
75
 
data_dictionary COLLATIONS      function        IS_COMPILED     indexed
76
 
data_dictionary COLLATIONS      function        SORTLEN indexed
77
 
data_dictionary COLUMNS function        TABLE_SCHEMA    indexed
78
 
data_dictionary COLUMNS function        TABLE_NAME      indexed
79
 
data_dictionary COLUMNS function        COLUMN_NAME     indexed
80
 
data_dictionary COLUMNS function        COLUMN_TYPE     indexed
81
 
data_dictionary COLUMNS function        ORDINAL_POSITION        indexed
82
 
data_dictionary COLUMNS function        COLUMN_DEFAULT  indexed
83
 
data_dictionary COLUMNS function        COLUMN_DEFAULT_IS_NULL  indexed
84
 
data_dictionary COLUMNS function        COLUMN_DEFAULT_UPDATE   indexed
85
 
data_dictionary COLUMNS function        IS_NULLABLE     indexed
 
63
DATA_DICTIONARY CHARACTER_SETS  function        CHARACTER_SET_NAME      indexed
 
64
DATA_DICTIONARY CHARACTER_SETS  function        DEFAULT_COLLATE_NAME    indexed
 
65
DATA_DICTIONARY CHARACTER_SETS  function        DESCRIPTION     indexed
 
66
DATA_DICTIONARY CHARACTER_SETS  function        MAXLEN  indexed
 
67
DATA_DICTIONARY COLLATIONS      function        CHARACTER_SET_NAME      indexed
 
68
DATA_DICTIONARY COLLATIONS      function        COLLATION_NAME  indexed
 
69
DATA_DICTIONARY COLLATIONS      function        DESCRIPTION     indexed
 
70
DATA_DICTIONARY COLLATIONS      function        ID      indexed
 
71
DATA_DICTIONARY COLLATIONS      function        IS_DEFAULT      indexed
 
72
DATA_DICTIONARY COLLATIONS      function        IS_COMPILED     indexed
 
73
DATA_DICTIONARY COLLATIONS      function        SORTLEN indexed
 
74
DATA_DICTIONARY COLUMNS function        TABLE_SCHEMA    indexed
 
75
DATA_DICTIONARY COLUMNS function        TABLE_NAME      indexed
 
76
DATA_DICTIONARY COLUMNS function        COLUMN_NAME     indexed
 
77
DATA_DICTIONARY COLUMNS function        COLUMN_TYPE     indexed
 
78
DATA_DICTIONARY COLUMNS function        ORDINAL_POSITION        indexed
 
79
DATA_DICTIONARY COLUMNS function        COLUMN_DEFAULT  indexed
 
80
DATA_DICTIONARY COLUMNS function        COLUMN_DEFAULT_IS_NULL  indexed
 
81
DATA_DICTIONARY COLUMNS function        COLUMN_DEFAULT_UPDATE   indexed
 
82
DATA_DICTIONARY COLUMNS function        IS_AUTO_INCREMENT       indexed
 
83
CREATE SCHEMA randgen_query_test;
 
84
USE randgen_query_test;
 
85
CREATE TABLE t1 (a INT);
 
86
CREATE TABLE t2 LIKE t1;
 
87
CREATE TABLE t3 LIKE t1;
 
88
CREATE TABLE t4 (b CHAR(500));
 
89
CREATE TABLE t5 LIKE t4;
 
90
select SQL_BIG_RESULT table_schema,
 
91
table_name,
 
92
CASE WHEN table_type = 'STANDARD' THEN 'table'
 
93
            WHEN table_type = 'FUNCTION' then 'function'
 
94
       ELSE 'misc' END,
 
95
column_name,
 
96
CASE WHEN IS_USED_IN_PRIMARY = 'YES' THEN 'primary'
 
97
             WHEN IS_INDEXED = 'YES' THEN 'indexed'
 
98
       ELSE 'indexed' END
 
99
FROM data_dictionary.tables INNER JOIN
 
100
data_dictionary.columns USING(table_schema, table_name) WHERE table_schema NOT IN ('DATA_DICTIONARY','INFORMATION_SCHEMA')
 
101
ORDER BY table_schema, table_name limit 20;
 
102
table_schema    table_name      CASE WHEN table_type = 'STANDARD' THEN 'table'
 
103
            WHEN table_type = 'FUNCTION' then 'function'
 
104
       ELSE 'misc' END  column_name     CASE WHEN IS_USED_IN_PRIMARY = 'YES' THEN 'primary'
 
105
             WHEN IS_INDEXED = 'YES' THEN 'indexed'
 
106
       ELSE 'indexed' END
 
107
 
 
108
randgen_query_test      t1      table   a       indexed
 
109
randgen_query_test      t2      table   a       indexed
 
110
randgen_query_test      t3      table   a       indexed
 
111
randgen_query_test      t4      table   b       indexed
 
112
randgen_query_test      t5      table   b       indexed
 
113
test    t1      table   col_bigint      indexed
 
114
test    t1      table   col_text        indexed
 
115
test    t1      table   col_char        indexed
 
116
test    t1      table   col_enum        indexed
 
117
test    t1      table   col_int indexed
 
118
test    t1      table   col_char_not_null       indexed
 
119
test    t1      table   col_int_not_null_key    indexed
 
120
test    t1      table   col_text_not_null       indexed
 
121
test    t1      table   col_enum_not_null_key   indexed
 
122
test    t1      table   col_int_key     indexed
 
123
test    t1      table   col_char_key    indexed
 
124
test    t1      table   col_enum_not_null       indexed
 
125
test    t1      table   col_text_not_null_key   indexed
 
126
test    t1      table   pk      primary
 
127
test    t1      table   col_bigint_key  indexed
 
128
DROP SCHEMA randgen_query_test;
 
129
USE test;
86
130
select AVG(`col_int_key`) + AVG(`col_int`) AS average1,
87
131
(SUM(`col_int_key`) + SUM(`col_int`)) / COUNT(*) AS average2,
88
132
COUNT(*) AS count FROM t1;
90
134
NULL    NULL    0
91
135
select collation_name,character_set_name FROM data_dictionary.collations;
92
136
collation_name  character_set_name
 
137
binary  binary
 
138
utf8_bin        utf8_general_ci
 
139
utf8_czech_ci   utf8_general_ci
 
140
utf8_danish_ci  utf8_general_ci
 
141
utf8_esperanto_ci       utf8_general_ci
 
142
utf8_estonian_ci        utf8_general_ci
93
143
utf8_general_ci utf8_general_ci
94
 
utf8_bin        utf8_general_ci
95
 
utf8_unicode_ci utf8_general_ci
 
144
utf8_hungarian_ci       utf8_general_ci
96
145
utf8_icelandic_ci       utf8_general_ci
97
146
utf8_latvian_ci utf8_general_ci
 
147
utf8_lithuanian_ci      utf8_general_ci
 
148
utf8_persian_ci utf8_general_ci
 
149
utf8_polish_ci  utf8_general_ci
 
150
utf8_roman_ci   utf8_general_ci
98
151
utf8_romanian_ci        utf8_general_ci
 
152
utf8_sinhala_ci utf8_general_ci
 
153
utf8_slovak_ci  utf8_general_ci
99
154
utf8_slovenian_ci       utf8_general_ci
100
 
utf8_polish_ci  utf8_general_ci
101
 
utf8_estonian_ci        utf8_general_ci
 
155
utf8_spanish2_ci        utf8_general_ci
102
156
utf8_spanish_ci utf8_general_ci
103
157
utf8_swedish_ci utf8_general_ci
104
158
utf8_turkish_ci utf8_general_ci
105
 
utf8_czech_ci   utf8_general_ci
106
 
utf8_danish_ci  utf8_general_ci
107
 
utf8_lithuanian_ci      utf8_general_ci
108
 
utf8_slovak_ci  utf8_general_ci
109
 
utf8_spanish2_ci        utf8_general_ci
110
 
utf8_roman_ci   utf8_general_ci
111
 
utf8_persian_ci utf8_general_ci
112
 
utf8_esperanto_ci       utf8_general_ci
113
 
utf8_hungarian_ci       utf8_general_ci
114
 
utf8_sinhala_ci utf8_general_ci
115
 
binary  binary
 
159
utf8_unicode_ci utf8_general_ci
116
160
select COUNT(*) from data_dictionary.tables;
117
161
COUNT(*)
118
162
####.##.####
 
163
DROP TABLE t1;