~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/information_schema.result

  • Committer: Lee Bieber
  • Date: 2010-11-20 22:04:04 UTC
  • mfrom: (1942.1.4 b)
  • Revision ID: kalebral@gmail.com-20101120220404-2qpb4xuik9wv9u1q
Merge Lee -  Run bzr ignore for leftover files
Merge Shrews - Add a --replicate-query option to the server which controls whether or not the SQL query string is included in the GPB Statement messages.
Merge Andrew - fix bug 665119: drizzleslap has -i mapped to two options
Merge Andrew fix bug 674145: Table Names Not Case Matched

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
a       INTEGER YES             YES     
28
28
select * from data_dictionary.columns where table_name="t1"
29
29
and column_name= "a";
30
 
TABLE_SCHEMA    TABLE_NAME      COLUMN_NAME     COLUMN_TYPE     ORDINAL_POSITION        COLUMN_DEFAULT  COLUMN_DEFAULT_IS_NULL  COLUMN_DEFAULT_UPDATE   IS_SIGNED       IS_AUTO_INCREMENT       IS_NULLABLE     IS_INDEXED      IS_USED_IN_PRIMARY      IS_UNIQUE       IS_MULTI        IS_FIRST_IN_MULTI       INDEXES_FOUND_IN        DATA_TYPE       DATA_ARCHETYPE  CHARACTER_MAXIMUM_LENGTH        CHARACTER_OCTET_LENGTH  NUMERIC_PRECISION       NUMERIC_SCALE   ENUM_VALUES     COLLATION_NAME  COLUMN_COMMENT
31
 
mysqltest       t1      a       INTEGER 0       NULL    YES             NULL    NO      YES     NO      NO      NO      NO      NO      0       INTEGER INTEGER 0       0       0       0       NULL            NULL
 
30
TABLE_SCHEMA    TABLE_NAME      COLUMN_NAME     COLUMN_TYPE     ORDINAL_POSITION        COLUMN_DEFAULT  COLUMN_DEFAULT_IS_NULL  COLUMN_DEFAULT_UPDATE   IS_AUTO_INCREMENT       IS_NULLABLE     IS_INDEXED      IS_USED_IN_PRIMARY      IS_UNIQUE       IS_MULTI        IS_FIRST_IN_MULTI       INDEXES_FOUND_IN        DATA_TYPE       CHARACTER_MAXIMUM_LENGTH        CHARACTER_OCTET_LENGTH  NUMERIC_PRECISION       NUMERIC_SCALE   ENUM_VALUES     COLLATION_NAME  COLUMN_COMMENT
 
31
mysqltest       t1      a       INTEGER 0       NULL    YES             NO      YES     NO      NO      NO      NO      NO      0       INTEGER 0       0       0       0       NULL            NULL
32
32
select table_name, column_name from data_dictionary.columns 
33
33
where table_schema = 'mysqltest' and table_name = 't1';
34
34
table_name      column_name
100
100
where table_name='t1';
101
101
column_name     data_type       CHARACTER_OCTET_LENGTH  CHARACTER_MAXIMUM_LENGTH
102
102
f1      BLOB    0       0
103
 
f2      TEXT    0       0
 
103
f2      BLOB    0       0
104
104
drop table t1;
105
105
create table t1(f1 int, f2 int, f3 BIGINT, f4 int,
106
106
f5 BIGINT, f6 int, f7 int);
187
187
AND t.table_name NOT LIKE 'falcon%'
188
188
  ORDER BY t.table_name, c1.column_name;
189
189
table_name      column_name
190
 
CATALOGS        CATALOG_CREATION_TIME
191
190
CHARACTER_SETS  DEFAULT_COLLATE_NAME
192
191
COLLATIONS      COLLATION_NAME
193
192
COLUMNS TABLE_SCHEMA
194
193
CUMULATIVE_SQL_COMMANDS COUNT_SELECT
195
194
CUMULATIVE_USER_STATS   BYTES_RECEIVED
196
195
CURRENT_SQL_COMMANDS    IP
197
 
ERRORS  ERROR_NAME
 
196
DRIZZLE_PROTOCOL_STATUS VARIABLE_VALUE
198
197
FOREIGN_KEYS    CONSTRAINT_SCHEMA
199
198
GLOBAL_STATEMENTS       VARIABLE_VALUE
200
199
GLOBAL_STATUS   VARIABLE_VALUE
202
201
INDEXES TABLE_SCHEMA
203
202
INDEX_PARTS     TABLE_SCHEMA
204
203
INNODB_CMP      COMPRESS_OPS
205
 
INNODB_CMPMEM   PAGE_SIZE
206
 
INNODB_CMPMEM_RESET     PAGE_SIZE
 
204
INNODB_CMPMEM   PAGES_USED
 
205
INNODB_CMPMEM_RESET     PAGES_USED
207
206
INNODB_CMP_RESET        COMPRESS_OPS
208
207
INNODB_LOCKS    LOCK_TRX_ID
209
208
INNODB_LOCK_WAITS       REQUESTED_LOCK_ID
210
 
INNODB_REPLICATION_LOG  TRANSACTION_SEGMENT_ID
211
209
INNODB_STATUS   VARIABLE_VALUE
212
 
INNODB_SYS_COLUMNS      NAME
213
 
INNODB_SYS_FIELDS       NAME
214
 
INNODB_SYS_FOREIGN      FOR_NAME
215
 
INNODB_SYS_FOREIGN_COLS FOR_COL_NAME
216
 
INNODB_SYS_INDEXES      NAME
217
 
INNODB_SYS_TABLES       NAME
218
 
INNODB_SYS_TABLESTATS   NAME
219
210
INNODB_TRX      TRX_STATE
220
211
MODULES MODULE_VERSION
 
212
MYSQL_PROTOCOL_STATUS   VARIABLE_VALUE
221
213
PLUGINS PLUGIN_TYPE
222
 
PROCESSLIST     USERNAME
223
 
PROTOCOL_COUNTERS       COUNTER
 
214
PROCESSLIST     USER
224
215
REPLICATION_STREAMS     APPLIER
225
216
SCHEMAS SCHEMA_NAME
226
217
SCOREBOARD_STATISTICS   NUMBER_OF_RANGE_LOCKS
227
218
SESSION_STATEMENTS      VARIABLE_VALUE
228
219
SESSION_STATUS  VARIABLE_VALUE
229
220
SESSION_VARIABLES       VARIABLE_VALUE
230
 
SYS_REPLICATION_LOG     SEGID
231
221
TABLES  TABLE_SCHEMA
232
222
TABLE_CACHE     TABLE_SCHEMA
233
223
TABLE_CONSTRAINTS       CONSTRAINT_SCHEMA
234
224
TABLE_DEFINITION_CACHE  TABLE_SCHEMA
235
 
USER_DEFINED_BARRIERS   SESSION_ID
236
 
USER_DEFINED_LOCKS      SESSION_ID
 
225
USER_BARRIERS   SESSION_ID
237
226
USER_DEFINED_VARIABLES  VARIABLE_VALUE
 
227
USER_LOCKS      SESSION_ID
238
228
SELECT t.table_name, c1.column_name
239
229
FROM data_dictionary.tables t
240
230
INNER JOIN
252
242
AND t.table_name NOT LIKE 'falcon%'
253
243
  ORDER BY t.table_name, c1.column_name;
254
244
table_name      column_name
255
 
CATALOGS        CATALOG_CREATION_TIME
256
245
CHARACTER_SETS  DEFAULT_COLLATE_NAME
257
246
COLLATIONS      COLLATION_NAME
258
247
COLUMNS TABLE_SCHEMA
259
248
CUMULATIVE_SQL_COMMANDS COUNT_SELECT
260
249
CUMULATIVE_USER_STATS   BYTES_RECEIVED
261
250
CURRENT_SQL_COMMANDS    IP
262
 
ERRORS  ERROR_NAME
 
251
DRIZZLE_PROTOCOL_STATUS VARIABLE_VALUE
263
252
FOREIGN_KEYS    CONSTRAINT_SCHEMA
264
253
GLOBAL_STATEMENTS       VARIABLE_VALUE
265
254
GLOBAL_STATUS   VARIABLE_VALUE
267
256
INDEXES TABLE_SCHEMA
268
257
INDEX_PARTS     TABLE_SCHEMA
269
258
INNODB_CMP      COMPRESS_OPS
270
 
INNODB_CMPMEM   PAGE_SIZE
271
 
INNODB_CMPMEM_RESET     PAGE_SIZE
 
259
INNODB_CMPMEM   PAGES_USED
 
260
INNODB_CMPMEM_RESET     PAGES_USED
272
261
INNODB_CMP_RESET        COMPRESS_OPS
273
262
INNODB_LOCKS    LOCK_TRX_ID
274
263
INNODB_LOCK_WAITS       REQUESTED_LOCK_ID
275
 
INNODB_REPLICATION_LOG  TRANSACTION_SEGMENT_ID
276
264
INNODB_STATUS   VARIABLE_VALUE
277
 
INNODB_SYS_COLUMNS      NAME
278
 
INNODB_SYS_FIELDS       NAME
279
 
INNODB_SYS_FOREIGN      FOR_NAME
280
 
INNODB_SYS_FOREIGN_COLS FOR_COL_NAME
281
 
INNODB_SYS_INDEXES      NAME
282
 
INNODB_SYS_TABLES       NAME
283
 
INNODB_SYS_TABLESTATS   NAME
284
265
INNODB_TRX      TRX_STATE
285
266
MODULES MODULE_VERSION
 
267
MYSQL_PROTOCOL_STATUS   VARIABLE_VALUE
286
268
PLUGINS PLUGIN_TYPE
287
 
PROCESSLIST     USERNAME
288
 
PROTOCOL_COUNTERS       COUNTER
 
269
PROCESSLIST     USER
289
270
REPLICATION_STREAMS     APPLIER
290
271
SCHEMAS SCHEMA_NAME
291
272
SCOREBOARD_STATISTICS   NUMBER_OF_RANGE_LOCKS
292
273
SESSION_STATEMENTS      VARIABLE_VALUE
293
274
SESSION_STATUS  VARIABLE_VALUE
294
275
SESSION_VARIABLES       VARIABLE_VALUE
295
 
SYS_REPLICATION_LOG     SEGID
296
276
TABLES  TABLE_SCHEMA
297
277
TABLE_CACHE     TABLE_SCHEMA
298
278
TABLE_CONSTRAINTS       CONSTRAINT_SCHEMA
299
279
TABLE_DEFINITION_CACHE  TABLE_SCHEMA
300
 
USER_DEFINED_BARRIERS   SESSION_ID
301
 
USER_DEFINED_LOCKS      SESSION_ID
 
280
USER_BARRIERS   SESSION_ID
302
281
USER_DEFINED_VARIABLES  VARIABLE_VALUE
 
282
USER_LOCKS      SESSION_ID
303
283
SELECT MAX(table_name) FROM data_dictionary.tables;
304
284
MAX(table_name)
305
285
VIEW_TABLE_USAGE
313
293
create table t2 (f1 int, f2 int);
314
294
drop table t1,t2;
315
295
select 1 as f1 from data_dictionary.tables  where "CHARACTER_SETS"=
316
 
(select cast(table_name as char)  from data_dictionary.tables WHERE TABLE_SCHEMA=schema()
317
 
AND TABLE_NAME = "CHARACTER_SETS"
318
 
 order by table_name limit 1) AND TABLE_SCHEMA=schema() limit 1;
 
296
(select cast(table_name as char)  from data_dictionary.tables
 
297
order by table_name limit 1) limit 1;
319
298
f1
 
299
1
320
300
select t.table_name, group_concat(t.table_schema, '.', t.table_name),
321
301
count(*) as num1
322
302
from data_dictionary.tables t
357
337
f5      BIGINT  NO              NO      
358
338
f6      BIGINT  NO      10      NO      
359
339
f7      DATETIME        NO              NO      
360
 
f8      DATETIME        YES     2006-01-01 00:00:00.000000      NO      
 
340
f8      DATETIME        YES     2006-01-01 00:00:00     NO      
361
341
drop table t1;
362
342
SET max_heap_table_size = DEFAULT;
363
343
USE test;
365
345
SELECT SCHEMA_NAME FROM data_dictionary.schemas
366
346
WHERE SCHEMA_NAME ='data_dictionary';
367
347
SCHEMA_NAME
368
 
DATA_DICTIONARY
 
348
data_dictionary
369
349
SELECT TABLE_COLLATION FROM data_dictionary.tables
370
350
WHERE TABLE_SCHEMA='mysql' and TABLE_NAME= 'db';
371
351
TABLE_COLLATION