~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/insert_select.result

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
20
22
22
22
23
23
drop table t1,t2;
24
 
CREATE TABLE `t1` (
 
24
CREATE TEMPORARY TABLE `t1` (
25
25
`numeropost` bigint NOT NULL default '0',
26
26
`icone` int NOT NULL default '0',
27
27
`numreponse` bigint NOT NULL auto_increment,
36
36
KEY `pseudo` (`pseudo`),
37
37
KEY `numreponse` (`numreponse`)
38
38
) ENGINE=MyISAM;
39
 
CREATE TABLE `t2` (
 
39
CREATE TEMPORARY TABLE `t2` (
40
40
`numeropost` bigint NOT NULL default '0',
41
41
`icone` int NOT NULL default '0',
42
42
`numreponse` bigint NOT NULL auto_increment,
613
613
SEQ          int NOT NULL default '0',
614
614
PRIMARY KEY  (ID),
615
615
KEY t1$NO    (SEQ,NO)
616
 
) ENGINE=MyISAM;
 
616
);
617
617
INSERT INTO t1 (SEQ, NO) SELECT "1" AS SEQ, IF(MAX(NO) IS NULL, 0, MAX(NO)) + 1 AS NO FROM t1 WHERE (SEQ = 1);
618
618
select SQL_BUFFER_RESULT * from t1 WHERE (SEQ = 1);
619
619
ID      NO      SEQ
787
787
#
788
788
create table t1(f1 int);
789
789
insert into t1 values(1),(2),(3);
790
 
create table t2 (key(f1)) engine=myisam select sql_buffer_result f1 from t1;
 
790
create temporary table t2 (key(f1)) engine=myisam select sql_buffer_result f1 from t1;
791
791
check table t2 extended;
792
792
Table   Op      Msg_type        Msg_text
793
793
test.t2 check   status  OK