~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/information_schema.result

  • Committer: Brian Aker
  • Date: 2008-07-28 16:10:34 UTC
  • Revision ID: brian@tangent.org-20080728161034-uikvlvhhartqc2ht
First pass of removing length types for ints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
t5      InnoDB  10      Compact 1       16384   16384   #       0       0       11      #       #       NULL    latin1_swedish_ci       NULL            
52
52
show full columns from t3 like "a%";
53
53
Field   Type    Collation       Null    Key     Default Extra   Privileges      Comment
54
 
a       int(11) NULL    YES     MUL     NULL                    
 
54
a       int     NULL    YES     MUL     NULL                    
55
55
select * from information_schema.COLUMNS where table_name="t1"
56
56
and column_name= "a";
57
57
TABLE_CATALOG   TABLE_SCHEMA    TABLE_NAME      COLUMN_NAME     ORDINAL_POSITION        COLUMN_DEFAULT  IS_NULLABLE     DATA_TYPE       CHARACTER_MAXIMUM_LENGTH        CHARACTER_OCTET_LENGTH  NUMERIC_PRECISION       NUMERIC_SCALE   CHARACTER_SET_NAME      COLLATION_NAME  COLUMN_TYPE     COLUMN_KEY      EXTRA   PRIVILEGES      COLUMN_COMMENT  STORAGE FORMAT
58
 
NULL    mysqltest       t1      a       1       NULL    YES     int     NULL    NULL    10      0       NULL    NULL    int(11)                                 Default Default
 
58
NULL    mysqltest       t1      a       1       NULL    YES     int     NULL    NULL    10      0       NULL    NULL    int                                     Default Default
59
59
show columns from mysqltest.t1 where field like "%a%";
60
60
Field   Type    Null    Key     Default Extra
61
 
a       int(11) YES             NULL    
 
61
a       int     YES             NULL    
62
62
select table_name, column_name, privileges from information_schema.columns 
63
63
where table_schema = 'mysqltest' and table_name = 't1';
64
64
table_name      column_name     privileges
66
66
t1      b       
67
67
show columns from mysqltest.t1;
68
68
Field   Type    Null    Key     Default Extra
69
 
a       int(11) YES             NULL    
 
69
a       int     YES             NULL    
70
70
b       varchar(30)     YES     MUL     NULL    
71
71
drop tables mysqltest.t4, mysqltest.t1, t2, t3, t5;
72
72
drop database mysqltest;
151
151
information_schema.columns 
152
152
where data_type = 'longtext';
153
153
table_schema    table_name      column_name
154
 
information_schema      COLUMNS COLUMN_DEFAULT
155
 
information_schema      COLUMNS COLUMN_TYPE
156
 
information_schema      PLUGINS PLUGIN_DESCRIPTION
157
 
information_schema      PROCESSLIST     INFO
158
154
select table_name, column_name, data_type from information_schema.columns
159
155
where data_type = 'datetime';
160
156
table_name      column_name     data_type
203
199
from information_schema.columns
204
200
where table_name='t1';
205
201
column_name     data_type       CHARACTER_OCTET_LENGTH  CHARACTER_MAXIMUM_LENGTH
206
 
f1      longblob        4294967295      4294967295
207
 
f2      longtext        4294967295      4294967295
 
202
f1      blob    4294967295      4294967295
 
203
f2      text    4294967295      4294967295
208
204
drop table t1;
209
205
create table t1(f1 tinyint, f2 SMALLINT, f3 BIGINT, f4 int,
210
206
f5 BIGINT, f6 TINYINT, f7 SMALLINT);
230
226
use test;
231
227
show columns from t1;
232
228
Field   Type    Null    Key     Default Extra
233
 
a       int(11) NO              NULL    
234
 
b       int(11) YES             NULL    
 
229
a       int     NO              NULL    
 
230
b       int     YES             NULL    
235
231
drop table t1;
236
232
CREATE TABLE t1 (a int);
237
233
CREATE TABLE t2 (b int);
268
264
create temporary table t1(f1 int, index(f1));
269
265
show columns from t1;
270
266
Field   Type    Null    Key     Default Extra
271
 
f1      int(11) YES     MUL     NULL    
 
267
f1      int     YES     MUL     NULL    
272
268
describe t1;
273
269
Field   Type    Null    Key     Default Extra
274
 
f1      int(11) YES     MUL     NULL    
 
270
f1      int     YES     MUL     NULL    
275
271
show indexes from t1;
276
272
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
277
273
t1      1       f1      1       f1      A       0       NULL    NULL    YES     BTREE           
459
455
f2      varchar(50)     NO              NULL    
460
456
f3      varchar(50)     YES             NULL    
461
457
f4      varchar(50)     YES             NULL    
462
 
f5      bigint(20)      NO              NULL    
463
 
f6      bigint(20)      NO              NULL    
 
458
f5      bigint  NO              NULL    
 
459
f6      bigint  NO              NULL    
464
460
f7      datetime        NO              NULL    
465
461
f8      datetime        YES             NULL    
466
462
drop table t1;