~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/default_collation.result

  • Committer: Monty Taylor
  • Date: 2009-09-30 07:01:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20090930070132-b1ol1xu1rpajdddy
Small namespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
create database mysqltest collate = utf8_bin;
 
2
show create database mysqltest;
 
3
Database        Create Database
 
4
mysqltest       CREATE DATABASE `mysqltest` COLLATE = utf8_bin
 
5
use mysqltest;
 
6
create table t1 (a varchar(10));
 
7
create table t2 (a varchar(10)) collate = utf8_general_ci;
 
8
insert into t1 values ('a'),('A'),('aA'),('Aa'),('ab'),('Ab');
 
9
insert into t2 values ('a'),('A'),('aA'),('Aa'),('ab'),('Ab');
 
10
select * from t1 order by a;
 
11
a
 
12
A
 
13
Aa
 
14
Ab
 
15
a
 
16
aA
 
17
ab
 
18
select * from t2 order by a;
 
19
a
 
20
a
 
21
A
 
22
aA
 
23
Aa
 
24
ab
 
25
Ab
 
26
show create table t1;
 
27
Table   Create Table
 
28
t1      CREATE TABLE `t1` (
 
29
  `a` varchar(10) COLLATE utf8_bin DEFAULT NULL
 
30
) ENGINE=InnoDB
 
31
show create table t2;
 
32
Table   Create Table
 
33
t2      CREATE TABLE `t2` (
 
34
  `a` varchar(10) DEFAULT NULL
 
35
) ENGINE=InnoDB
 
36
select count(*) from t1 where a='a';
 
37
count(*)
 
38
1
 
39
select count(*) from t2 where a='a';
 
40
count(*)
 
41
2
 
42
select count(*) from t1 where a like 'a%';
 
43
count(*)
 
44
3
 
45
select count(*) from t2 where a like 'a%';
 
46
count(*)
 
47
6
 
48
drop table if exists t1;
 
49
drop table if exists t2;
 
50
drop database if exists mysqltest;