mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
switched to new syntax (TYPE->ENGINE)
check of memory allocation operation was added mysql-test/r/subselect_innodb.result: switched to new syntax mysql-test/t/subselect_innodb.test: switched to new syntax sql/sql_select.cc: check of memory allocation operation
This commit is contained in:
@@ -69,7 +69,7 @@ b int(11) default NULL,
|
||||
c char(3) default NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY t2i1 (b)
|
||||
) TYPE=innodb DEFAULT CHARSET=latin1;
|
||||
) ENGINE=innodb DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t1 VALUES (0,0,'GPL'),(1,0,'GPL'),(2,1,'GPL'),(3,2,'GPL');
|
||||
CREATE TABLE t2 (
|
||||
id int(11) NOT NULL default '0',
|
||||
@@ -77,7 +77,7 @@ b int(11) default NULL,
|
||||
c char(3) default NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY t2i (b)
|
||||
) TYPE=innodb DEFAULT CHARSET=latin1;
|
||||
) ENGINE=innodb DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t2 VALUES (0,0,'GPL'),(1,0,'GPL'),(2,1,'GPL'),(3,2,'GPL');
|
||||
select (select max(id) from t2 where b=1 group by b) as x,b from t1 where b=1;
|
||||
x b
|
||||
|
||||
Reference in New Issue
Block a user