Navigation Menu

Skip to content

Commit

Permalink
test: show only a colum info
Browse files Browse the repository at this point in the history
Because we want to check column's comment.
  • Loading branch information
kou committed Jun 21, 2013
1 parent 093abb9 commit 5584266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Expand Up @@ -7,13 +7,9 @@ CREATE TABLE Bugs (
id INT UNSIGNED PRIMARY KEY,
tag TEXT COMMENT 'It references to Tags.name, type "Tags"'
) DEFAULT CHARSET=utf8;
SHOW CREATE TABLE Bugs;
Table Create Table
Bugs CREATE TABLE `Bugs` (
`id` int(10) unsigned NOT NULL,
`tag` text COMMENT 'It references to Tags.name, type "Tags"',
PRIMARY KEY (`id`)
) ENGINE=mroonga DEFAULT CHARSET=utf8
SHOW FULL COLUMNS FROM Bugs LIKE 'tag';
Field Type Collation Null Key Default Extra Privileges Comment
tag text utf8_general_ci YES NULL select,insert,update,references It references to Tags.name, type "Tags"
INSERT INTO Bugs (id, tag) VALUES (1, "Linux");
INSERT INTO Bugs (id, tag) VALUES (2, "MySQL");
INSERT INTO Bugs (id, tag) VALUES (3, "groonga");
Expand Down
Expand Up @@ -31,7 +31,7 @@ CREATE TABLE Bugs (
tag TEXT COMMENT 'It references to Tags.name, type "Tags"'
) DEFAULT CHARSET=utf8;

SHOW CREATE TABLE Bugs;
SHOW FULL COLUMNS FROM Bugs LIKE 'tag';

INSERT INTO Bugs (id, tag) VALUES (1, "Linux");
INSERT INTO Bugs (id, tag) VALUES (2, "MySQL");
Expand Down

0 comments on commit 5584266

Please sign in to comment.