~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/derived.result

  • Committer: Brian Aker
  • Date: 2009-06-16 00:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1094.
  • Revision ID: brian@gaz-20090616005322-w0ode4jul9z8s2y9
Partial fix for tests for tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
CREATE TABLE `t1` (
252
252
`N` int NOT NULL default '0',
253
253
`M` int default '0'
254
 
) ENGINE=MyISAM;
 
254
);
255
255
INSERT INTO `t1` (N, M) VALUES (1, 0),(1, 0),(1, 0),(2, 0),(2, 0),(3, 0);
256
256
UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2;
257
257
select * from t1;
271
271
delete P1.* from `t1` AS P1 INNER JOIN (SELECT aaa FROM `t1` GROUP BY N HAVING Count(M) > 1) AS p2 ON P1.N = p2.N;
272
272
ERROR 42S22: Unknown column 'aaa' in 'field list'
273
273
drop table t1;
274
 
CREATE TABLE t1 (
 
274
CREATE TEMPORARY TABLE t1 (
275
275
OBJECTID int NOT NULL default 0,
276
276
SORTORDER int NOT NULL auto_increment,
277
277
KEY t1_SortIndex (SORTORDER),
278
278
KEY t1_IdIndex (OBJECTID)
279
279
) ENGINE=MyISAM;
280
 
CREATE TABLE t2 (
 
280
CREATE TEMPORARY TABLE t2 (
281
281
ID int default NULL,
282
282
PARID int default NULL,
283
283
UNIQUE KEY t2_ID_IDX (ID),
284
284
KEY t2_PARID_IDX (PARID)
285
285
) engine=MyISAM;
286
286
INSERT INTO t2 VALUES (1000,0),(1001,0),(1002,0),(1003,0),(1008,1),(1009,1),(1010,1),(1011,1),(1016,2);
287
 
CREATE TABLE t3 (
 
287
CREATE TEMPORARY TABLE t3 (
288
288
ID int default NULL,
289
289
DATA decimal(10,2) default NULL,
290
290
UNIQUE KEY t3_ID_IDX (ID)