Forums » General Discussion

Thread: Bug in Schema Compare: missing DEFAULT '' and column's comments


Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
msugar

Posts: 1
Registered: 12/31/12
Bug in Schema Compare: missing DEFAULT '' and column's comments
Posted: Dec 31, 2012 10:11 AM
  Click to reply to this thread Reply

Hi,

 

I was comparing the schema of two MySQL 5.5 databases using Toad for MySQL  6.4.0.642 and it seems the DDL script generated is not complete.

 

Example:

 

With MySQL Workbench 5.2.44 CE, I get the following CREATE script for the table:

 

CREATE TABLE `georevenue` (

  `Stamp` datetime NOT NULL COMMENT 'Date',

  `CampaignID` int(11) NOT NULL DEFAULT '0',

  `Country` varchar(100) NOT NULL DEFAULT '',

  `Region` varchar(100) NOT NULL DEFAULT '',

  `City` varchar(100) NOT NULL DEFAULT '',

<other columns and indexes suppressed to make the example shorter >

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Geo Revenue By Hour';

 

But using Toad for MySQL, I get:

 

CREATE TABLE `acuityads_dev`.`georevenue` (

`Stamp` datetime NOT NULL,

`CampaignID` int(11) NOT NULL DEFAULT '0',

`Country` varchar(100) NOT NULL,

`Region` varchar(100) NOT NULL,

`City` varchar(100) NOT NULL,

<other columns and indexes suppressed to make the example shorter >

)

ENGINE = InnoDB

CHARACTER SET = utf8

ROW_FORMAT = COMPACT

COMMENT = 'Geo Revenue By Hour';

 

Why is the DEFAULT '' missing in Toad? (By the way, why is the first column?s comment missing, too?)

 

Thank you,

 

Marcio




Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums