Fix samples for MySQL 5.0.

This commit is contained in:
Daniel Nichter
2012-03-07 09:35:50 -07:00
parent e122b884e2
commit 991d6c606b
3 changed files with 3 additions and 3 deletions

View File

@@ -314,7 +314,7 @@ SKIP: {
$tp = new TableParser(Quoter => $q);
test_so(
filters => [qw(-t mysql.user)],
result => $sandbox_version eq '5.1' ? "$out/mysql-user-ddl.txt"
result => $sandbox_version ge '5.1' ? "$out/mysql-user-ddl.txt"
: "$out/mysql-user-ddl-5.0.txt",
test_name => "Get CREATE TABLE with dbh",
);

View File

@@ -37,7 +37,7 @@ CREATE TABLE `user` (
`max_updates` int(11) unsigned NOT NULL default '0',
`max_connections` int(11) unsigned NOT NULL default '0',
`max_user_connections` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`Host`,`User`)
PRIMARY KEY (`Host`,`User`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'

View File

@@ -3,6 +3,6 @@ CREATE TABLE `actor` (
`first_name` varchar(45) NOT NULL,
`last_name` varchar(45) NOT NULL,
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`actor_id`),
PRIMARY KEY (`actor_id`),
KEY `idx_actor_last_name` (`last_name`)
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8