mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
SHOW FIELDS changes, more SQL99 INFORMATION_SCHEMA.COLUMNS compatibility:
Character set is not displayed in "Type" column anymore In "Collation" column NULL instead of BINARY is now displayd for for non-character data types
This commit is contained in:
@ -51,8 +51,8 @@ KEY NAME (NAME));
|
||||
ALTER TABLE t1 CHANGE NAME NAME CHAR(80) not null;
|
||||
SHOW FULL COLUMNS FROM t1;
|
||||
Field Type Collation Null Key Default Extra Privileges Comment
|
||||
GROUP_ID int(10) unsigned binary PRI 0 select,insert,update,references
|
||||
LANG_ID smallint(5) unsigned binary PRI 0 select,insert,update,references
|
||||
GROUP_ID int(10) unsigned NULL PRI 0 select,insert,update,references
|
||||
LANG_ID smallint(5) unsigned NULL PRI 0 select,insert,update,references
|
||||
NAME char(80) latin1_swedish_ci MUL select,insert,update,references
|
||||
DROP TABLE t1;
|
||||
create table t1 (n int);
|
||||
@ -157,7 +157,7 @@ alter table t1 rename t2;
|
||||
alter table t2 rename t1, add c char(10) comment "no comment";
|
||||
show columns from t1;
|
||||
Field Type Collation Null Key Default Extra
|
||||
i int(10) unsigned binary PRI NULL auto_increment
|
||||
i int(10) unsigned NULL PRI NULL auto_increment
|
||||
c char(10) latin1_swedish_ci YES NULL
|
||||
drop table t1;
|
||||
create table t1 (a int, b int);
|
||||
|
Reference in New Issue
Block a user