Commit 1b107a59 authored by Tatiana A. Nurnberg's avatar Tatiana A. Nurnberg
Browse files

auto-merged

parents 9c24a39a 7f23602e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ check_cpu () {
  fi

  cc_ver=`$cc --version | sed 1q`
  cc_verno=`echo $cc_ver | sed -e 's/^.*gcc/gcc/g; s/[^0-9. ]//g;	 s/^ *//g; s/ .*//g'`
  cc_verno=`echo $cc_ver | sed -e 's/^.*(GCC)//g; s/[^0-9. ]//g;	 s/^ *//g; s/ .*//g'`
  set -- `echo $cc_verno | tr '.' ' '`
  cc_major=$1
  cc_minor=$2
+0 −25
Original line number Diff line number Diff line
@@ -2372,28 +2372,3 @@ a MIN(b) MAX(b) AVG(b)
2	1	3	2.0000
1	1	3	2.0000
DROP TABLE t1;
create table t1 (a int, b int, primary key (a,b), key `index` (a,b)) engine=MyISAM;
insert into  t1 (a,b) values (0,0),(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),(0,7),
(0,8),(0,9),(0,10),(0,11);
insert into t1 (a,b) select a, max(b)+1 from t1 where a = 0 group by a;
select * from t1;
a	b
0	0
0	1
0	2
0	3
0	4
0	5
0	6
0	7
0	8
0	9
0	10
0	11
0	12
explain extended select sql_buffer_result a, max(b)+1 from t1 where a = 0 group by a;
id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	t1	range	PRIMARY,index	PRIMARY	4	NULL	5	Using where; Using index for group-by; Using temporary
Warnings:
Note	1003	select sql_buffer_result `test`.`t1`.`a` AS `a`,(max(`test`.`t1`.`b`) + 1) AS `max(b)+1` from `test`.`t1` where (`test`.`t1`.`a` = 0) group by `test`.`t1`.`a`
drop table t1;
+1 KiB

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+336 B

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+4 KiB

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

Loading