Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
86d9b5e9
Commit
86d9b5e9
authored
Mar 06, 2008
by
bar@mysql.com/bar.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional test fixes for bug 27580
parent
34da9303
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
0 deletions
+70
-0
mysql-test/r/ctype_cp1250_ch.result
mysql-test/r/ctype_cp1250_ch.result
+34
-0
mysql-test/r/ctype_cp932.result
mysql-test/r/ctype_cp932.result
+19
-0
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+17
-0
No files found.
mysql-test/r/ctype_cp1250_ch.result
View file @
86d9b5e9
...
@@ -57,6 +57,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
...
@@ -57,6 +57,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
want1result
want1result
location
location
DROP TABLE t1;
DROP TABLE t1;
create table t1 (a set('a') not null);
insert into t1 values (),();
Warnings:
Warning 1364 Field 'a' doesn't have a default value
select cast(a as char(1)) from t1;
cast(a as char(1))
select a sounds like a from t1;
a sounds like a
1
1
select 1 from t1 order by cast(a as char(1));
1
1
1
drop table t1;
set names utf8;
set names utf8;
create table t1 (
create table t1 (
name varchar(10),
name varchar(10),
...
@@ -133,6 +150,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
...
@@ -133,6 +150,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
want1result
want1result
location
location
DROP TABLE t1;
DROP TABLE t1;
create table t1 (a set('a') not null);
insert into t1 values (),();
Warnings:
Warning 1364 Field 'a' doesn't have a default value
select cast(a as char(1)) from t1;
cast(a as char(1))
select a sounds like a from t1;
a sounds like a
1
1
select 1 from t1 order by cast(a as char(1));
1
1
1
drop table t1;
set names utf8;
set names utf8;
create table t1 (
create table t1 (
name varchar(10),
name varchar(10),
...
...
mysql-test/r/ctype_cp932.result
View file @
86d9b5e9
...
@@ -6,6 +6,8 @@ SET @test_character_set= 'cp932';
...
@@ -6,6 +6,8 @@ SET @test_character_set= 'cp932';
SET @test_collation= 'cp932_japanese_ci';
SET @test_collation= 'cp932_japanese_ci';
SET @safe_character_set_server= @@character_set_server;
SET @safe_character_set_server= @@character_set_server;
SET @safe_collation_server= @@collation_server;
SET @safe_collation_server= @@collation_server;
SET @safe_character_set_client= @@character_set_client;
SET @safe_character_set_results= @@character_set_results;
SET character_set_server= @test_character_set;
SET character_set_server= @test_character_set;
SET collation_server= @test_collation;
SET collation_server= @test_collation;
CREATE DATABASE d1;
CREATE DATABASE d1;
...
@@ -72,10 +74,27 @@ select 1 from t1 order by cast(a as char(1));
...
@@ -72,10 +74,27 @@ select 1 from t1 order by cast(a as char(1));
1
1
1
1
drop table t1;
drop table t1;
set names utf8;
create table t1 (
name varchar(10),
level smallint unsigned);
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`name` varchar(10) default NULL,
`level` smallint(5) unsigned default NULL
) ENGINE=MyISAM DEFAULT CHARSET=cp932
insert into t1 values ('string',1);
select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
concat(name,space(level)) concat(name, repeat(' ',level))
string string
drop table t1;
DROP DATABASE d1;
DROP DATABASE d1;
USE test;
USE test;
SET character_set_server= @safe_character_set_server;
SET character_set_server= @safe_character_set_server;
SET collation_server= @safe_collation_server;
SET collation_server= @safe_collation_server;
SET character_set_client= @safe_character_set_client;
SET character_set_results= @safe_character_set_results;
set names cp932;
set names cp932;
set character_set_database = cp932;
set character_set_database = cp932;
CREATE TABLE t1(c1 CHAR(1)) DEFAULT CHARACTER SET = cp932;
CREATE TABLE t1(c1 CHAR(1)) DEFAULT CHARACTER SET = cp932;
...
...
mysql-test/r/ctype_ucs.result
View file @
86d9b5e9
...
@@ -54,6 +54,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
...
@@ -54,6 +54,23 @@ SELECT c1 as want1result from t1 where c1 like 'location%';
want1result
want1result
location
location
DROP TABLE t1;
DROP TABLE t1;
create table t1 (a set('a') not null);
insert into t1 values (),();
Warnings:
Warning 1364 Field 'a' doesn't have a default value
select cast(a as char(1)) from t1;
cast(a as char(1))
select a sounds like a from t1;
a sounds like a
1
1
select 1 from t1 order by cast(a as char(1));
1
1
1
drop table t1;
set names utf8;
set names utf8;
create table t1 (
create table t1 (
name varchar(10),
name varchar(10),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment