Skip to content

Commit fcf96db

Browse files
author
antony@ltantony.rdg.cyberkinetica.homeunix.net
committed
WorkLog#1323
Deprecate the use of TYPE=... Preferred syntax is ENGINE=
1 parent 2811339 commit fcf96db

File tree

189 files changed

+1071
-996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+1071
-996
lines changed

include/mysqld_error.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,5 @@
302302
#define ER_UNKNOWN_KEY_CACHE 1283
303303
#define ER_WARN_HOSTNAME_WONT_WORK 1284
304304
#define ER_UNKNOWN_TABLE_ENGINE 1285
305-
#define ER_ERROR_MESSAGES 286
305+
#define ER_WARN_DEPRECATED_SYNTAX 1286
306+
#define ER_ERROR_MESSAGES 287

mysql-test/r/alias.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ KEY prov_hdl_nr(prov_hdl_nr),
4747
KEY mcbs_aufnr(mcbs_aufnr),
4848
KEY kundentyp(kundentyp),
4949
KEY p_nr(p_nr,suffix)
50-
) TYPE=MyISAM;
50+
) ENGINE=MyISAM;
5151
INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und gepr�ft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
5252
INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und gepr�ft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
5353
INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und gepr�ft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');

mysql-test/r/alter_table.result

+9-9
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ body text NOT NULL,
7373
user_id int(11) unsigned NOT NULL default '0',
7474
status enum('new','old') NOT NULL default 'new',
7575
PRIMARY KEY (id)
76-
) TYPE=MyISAM;
76+
) ENGINE=MyISAM;
7777
ALTER TABLE t1 ORDER BY t1.id, t1.status, t1.type_id, t1.user_id, t1.body;
7878
DROP TABLE t1;
79-
CREATE TABLE t1 (AnamneseId int(10) unsigned NOT NULL auto_increment,B BLOB,PRIMARY KEY (AnamneseId)) type=myisam;
79+
CREATE TABLE t1 (AnamneseId int(10) unsigned NOT NULL auto_increment,B BLOB,PRIMARY KEY (AnamneseId)) engine=myisam;
8080
insert into t1 values (null,"hello");
8181
LOCK TABLES t1 WRITE;
8282
ALTER TABLE t1 ADD Column new_col int not null;
@@ -323,31 +323,31 @@ show create table t1;
323323
Table Create Table
324324
t1 CREATE TABLE `t1` (
325325
`a` char(10) character set koi8r default NULL
326-
) TYPE=MyISAM DEFAULT CHARSET=latin1
326+
) ENGINE=MyISAM DEFAULT CHARSET=latin1
327327
alter table t1 DEFAULT CHARACTER SET latin1;
328328
show create table t1;
329329
Table Create Table
330330
t1 CREATE TABLE `t1` (
331331
`a` char(10) character set koi8r default NULL
332-
) TYPE=MyISAM DEFAULT CHARSET=latin1
332+
) ENGINE=MyISAM DEFAULT CHARSET=latin1
333333
alter table t1 CHARACTER SET latin1;
334334
show create table t1;
335335
Table Create Table
336336
t1 CREATE TABLE `t1` (
337337
`a` char(10) default NULL
338-
) TYPE=MyISAM DEFAULT CHARSET=latin1
338+
) ENGINE=MyISAM DEFAULT CHARSET=latin1
339339
alter table t1 DEFAULT CHARACTER SET cp1251;
340340
show create table t1;
341341
Table Create Table
342342
t1 CREATE TABLE `t1` (
343343
`a` char(10) character set latin1 default NULL
344-
) TYPE=MyISAM DEFAULT CHARSET=cp1251
344+
) ENGINE=MyISAM DEFAULT CHARSET=cp1251
345345
drop table t1;
346346
CREATE TABLE t1 (
347347
Host varchar(16) binary NOT NULL default '',
348348
User varchar(16) binary NOT NULL default '',
349349
PRIMARY KEY (Host,User)
350-
) TYPE=MyISAM;
350+
) ENGINE=MyISAM;
351351
ALTER TABLE t1 DISABLE KEYS;
352352
LOCK TABLES t1 WRITE;
353353
INSERT INTO t1 VALUES ('localhost','root'),('localhost',''),('games','monty');
@@ -366,7 +366,7 @@ Host varchar(16) binary NOT NULL default '',
366366
User varchar(16) binary NOT NULL default '',
367367
PRIMARY KEY (Host,User),
368368
KEY (Host)
369-
) TYPE=MyISAM;
369+
) ENGINE=MyISAM;
370370
ALTER TABLE t1 DISABLE KEYS;
371371
SHOW INDEX FROM t1;
372372
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
@@ -403,7 +403,7 @@ Host varchar(16) binary NOT NULL default '',
403403
User varchar(16) binary NOT NULL default '',
404404
PRIMARY KEY (Host,User),
405405
KEY (Host)
406-
) TYPE=MyISAM;
406+
) ENGINE=MyISAM;
407407
LOCK TABLES t1 WRITE;
408408
ALTER TABLE t1 DISABLE KEYS;
409409
SHOW INDEX FROM t1;

mysql-test/r/auto_increment.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
drop table if exists t1;
22
SET SQL_WARNINGS=1;
3-
create table t1 (a int not null auto_increment,b int, primary key (a)) type=myisam auto_increment=3;
3+
create table t1 (a int not null auto_increment,b int, primary key (a)) engine=myisam auto_increment=3;
44
insert into t1 values (1,1),(NULL,3),(NULL,4);
55
delete from t1 where a=4;
66
insert into t1 values (NULL,5),(NULL,6);

mysql-test/r/bdb-alter-table-1.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
drop table if exists t1;
2-
create table t1(objid BIGINT not null, tablename varchar(64), oid BIGINT not null, test BIGINT, PRIMARY KEY (objid), UNIQUE(tablename)) type=BDB;
2+
create table t1(objid BIGINT not null, tablename varchar(64), oid BIGINT not null, test BIGINT, PRIMARY KEY (objid), UNIQUE(tablename)) engine=BDB;
33
insert into t1 values(1, 't1',4,9);
44
insert into t1 values(2, 'metatable',1,9);
55
insert into t1 values(3, 'metaindex',1,9 );

mysql-test/r/bdb-crash.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ChargeTimeStamp varchar(20),
1414
PRIMARY KEY (ChargeID),
1515
KEY ServiceID (ServiceID),
1616
KEY ChargeDate (ChargeDate)
17-
) type=BDB;
17+
) engine=BDB;
1818
BEGIN;
1919
INSERT INTO t1
2020
VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');

mysql-test/r/bdb-deadlock.result

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
drop table if exists t1,t2;
2-
create table t1 (id integer, x integer) type=BDB;
3-
create table t2 (id integer, x integer) type=BDB;
2+
create table t1 (id integer, x integer) engine=BDB;
3+
create table t2 (id integer, x integer) engine=BDB;
44
insert into t1 values(0, 0);
55
insert into t2 values(0, 0);
66
set autocommit=0;

0 commit comments

Comments
 (0)