~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/func_op.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Description
 
2
# -----------
 
3
# Simple operands and arithmetic grouping
 
4
 
 
5
select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5),-(1+1)*-2;
 
6
explain extended select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5),-(1+1)*-2;
 
7
 
 
8
#
 
9
# Bug 13044: wrong bit_count() results
 
10
#
 
11
 
 
12
--disable_warnings
 
13
drop table if exists t1,t2;
 
14
--enable_warnings
 
15
create table t1(a int);
 
16
create table t2(a int, b int);
 
17
insert into t1 values (1), (2), (3);
 
18
insert into t2 values (1, 7), (3, 7);
 
19
select t1.a, t2.a, t2.b from t1 left join t2 on t1.a=t2.a;
 
20
drop table t1, t2;
 
21
 
 
22
# End of 4.1 tests