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
51d3d41e
Commit
51d3d41e
authored
Oct 26, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
5622920f
8dab5144
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
17 deletions
+8
-17
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+5
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+3
-0
sql/field.cc
sql/field.cc
+0
-16
sql/field.h
sql/field.h
+0
-1
No files found.
mysql-test/r/ctype_utf8.result
View file @
51d3d41e
...
@@ -796,6 +796,11 @@ insert into t1 values(1,'foo'),(2,'foobar');
...
@@ -796,6 +796,11 @@ insert into t1 values(1,'foo'),(2,'foobar');
select * from t1 where b like 'foob%';
select * from t1 where b like 'foob%';
a b
a b
2 foobar
2 foobar
alter table t1 engine=bdb;
select * from t1 where b like 'foob%';
a b
2 foobar
drop table t1;
drop table t1;
drop table t1;
create table t1 (
create table t1 (
a enum('петя','вася','анюта') character set utf8 not null default 'анюта',
a enum('петя','вася','анюта') character set utf8 not null default 'анюта',
...
...
mysql-test/t/ctype_utf8.test
View file @
51d3d41e
...
@@ -643,6 +643,9 @@ create table t1 (
...
@@ -643,6 +643,9 @@ create table t1 (
--
enable_warnings
--
enable_warnings
insert
into
t1
values
(
1
,
'foo'
),(
2
,
'foobar'
);
insert
into
t1
values
(
1
,
'foo'
),(
2
,
'foobar'
);
select
*
from
t1
where
b
like
'foob%'
;
select
*
from
t1
where
b
like
'foob%'
;
--
disable_warnings
alter
table
t1
engine
=
bdb
;
select
*
from
t1
where
b
like
'foob%'
;
drop
table
t1
;
drop
table
t1
;
#
#
...
...
sql/field.cc
View file @
51d3d41e
...
@@ -4425,23 +4425,7 @@ void Field_string::sql_type(String &res) const
...
@@ -4425,23 +4425,7 @@ void Field_string::sql_type(String &res) const
res
.
length
(
length
);
res
.
length
(
length
);
}
}
char
*
Field_string
::
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
)
char
*
Field_string
::
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
)
{
const
char
*
end
=
from
+
min
(
field_length
,
max_length
);
uint
length
;
while
(
end
>
from
&&
end
[
-
1
]
==
' '
)
end
--
;
length
=
(
end
-
from
);
*
to
++=
(
char
)
(
uchar
)
length
;
if
(
field_length
>
255
)
*
to
++=
(
char
)
(
uchar
)
(
length
>>
8
);
memcpy
(
to
,
from
,
(
int
)
length
);
return
to
+
length
;
}
char
*
Field_string
::
pack_key
(
char
*
to
,
const
char
*
from
,
uint
max_length
)
{
{
uint
length
=
min
(
field_length
,
max_length
);
uint
length
=
min
(
field_length
,
max_length
);
uint
char_length
=
max_length
/
field_charset
->
mbmaxlen
;
uint
char_length
=
max_length
/
field_charset
->
mbmaxlen
;
...
...
sql/field.h
View file @
51d3d41e
...
@@ -927,7 +927,6 @@ public:
...
@@ -927,7 +927,6 @@ public:
void
sort_string
(
char
*
buff
,
uint
length
);
void
sort_string
(
char
*
buff
,
uint
length
);
void
sql_type
(
String
&
str
)
const
;
void
sql_type
(
String
&
str
)
const
;
char
*
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
=~
(
uint
)
0
);
char
*
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
=~
(
uint
)
0
);
char
*
pack_key
(
char
*
to
,
const
char
*
from
,
uint
max_length
);
const
char
*
unpack
(
char
*
to
,
const
char
*
from
);
const
char
*
unpack
(
char
*
to
,
const
char
*
from
);
int
pack_cmp
(
const
char
*
a
,
const
char
*
b
,
uint
key_length
);
int
pack_cmp
(
const
char
*
a
,
const
char
*
b
,
uint
key_length
);
int
pack_cmp
(
const
char
*
b
,
uint
key_length
);
int
pack_cmp
(
const
char
*
b
,
uint
key_length
);
...
...
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