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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b9dbef8e
Commit
b9dbef8e
authored
Aug 19, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
parents
afc10d51
4f814483
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
5 deletions
+28
-5
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+10
-0
mysql-test/t/ctype_ucs.test
mysql-test/t/ctype_ucs.test
+11
-0
ndb/include/kernel/Interpreter.hpp
ndb/include/kernel/Interpreter.hpp
+3
-3
ndb/include/util/BaseString.hpp
ndb/include/util/BaseString.hpp
+1
-1
sql/field_conv.cc
sql/field_conv.cc
+3
-1
No files found.
mysql-test/r/ctype_ucs.result
View file @
b9dbef8e
...
@@ -470,3 +470,13 @@ select s1 from t1 where s1 > 'a' order by s1;
...
@@ -470,3 +470,13 @@ select s1 from t1 where s1 > 'a' order by s1;
s1
s1
b
b
c
c
drop table t1;
create table t1(a char(1)) default charset = ucs2;
insert into t1 values ('a'),('b'),('c');
alter table t1 modify a char(5);
select a, hex(a) from t1;
a hex(a)
a 0061
b 0062
c 0063
drop table t1;
mysql-test/t/ctype_ucs.test
View file @
b9dbef8e
...
@@ -303,4 +303,15 @@ DROP TABLE t1;
...
@@ -303,4 +303,15 @@ DROP TABLE t1;
create
table
t1
(
s1
char
character
set
`ucs2`
collate
`ucs2_czech_ci`
);
create
table
t1
(
s1
char
character
set
`ucs2`
collate
`ucs2_czech_ci`
);
insert
into
t1
values
(
'0'
),(
'1'
),(
'2'
),(
'a'
),(
'b'
),(
'c'
);
insert
into
t1
values
(
'0'
),(
'1'
),(
'2'
),(
'a'
),(
'b'
),(
'c'
);
select
s1
from
t1
where
s1
>
'a'
order
by
s1
;
select
s1
from
t1
where
s1
>
'a'
order
by
s1
;
drop
table
t1
;
#
# Bug #5081 : UCS2 fields are filled with '0x2020'
# after extending field length
#
create
table
t1
(
a
char
(
1
))
default
charset
=
ucs2
;
insert
into
t1
values
(
'a'
),(
'b'
),(
'c'
);
alter
table
t1
modify
a
char
(
5
);
select
a
,
hex
(
a
)
from
t1
;
drop
table
t1
;
ndb/include/kernel/Interpreter.hpp
View file @
b9dbef8e
...
@@ -83,7 +83,7 @@ public:
...
@@ -83,7 +83,7 @@ public:
static
Uint32
LoadConst64
(
Uint32
Register
);
// Value in next 2 words
static
Uint32
LoadConst64
(
Uint32
Register
);
// Value in next 2 words
static
Uint32
Add
(
Uint32
DstReg
,
Uint32
SrcReg1
,
Uint32
SrcReg2
);
static
Uint32
Add
(
Uint32
DstReg
,
Uint32
SrcReg1
,
Uint32
SrcReg2
);
static
Uint32
Sub
(
Uint32
DstReg
,
Uint32
SrcReg1
,
Uint32
SrcReg2
);
static
Uint32
Sub
(
Uint32
DstReg
,
Uint32
SrcReg1
,
Uint32
SrcReg2
);
static
Uint32
Branch
(
Uint32
Inst
,
Uint32
R
1
,
Uint32
R
2
);
static
Uint32
Branch
(
Uint32
Inst
,
Uint32
R
eg1
,
Uint32
Reg
2
);
static
Uint32
ExitOK
();
static
Uint32
ExitOK
();
/**
/**
...
@@ -184,8 +184,8 @@ Interpreter::Sub(Uint32 Dcoleg, Uint32 SrcReg1, Uint32 SrcReg2){
...
@@ -184,8 +184,8 @@ Interpreter::Sub(Uint32 Dcoleg, Uint32 SrcReg1, Uint32 SrcReg2){
inline
inline
Uint32
Uint32
Interpreter
::
Branch
(
Uint32
Inst
,
Uint32
R
1
,
Uint32
R
2
){
Interpreter
::
Branch
(
Uint32
Inst
,
Uint32
R
eg1
,
Uint32
Reg
2
){
return
(
R
1
<<
9
)
+
(
R
2
<<
6
)
+
Inst
;
return
(
R
eg1
<<
9
)
+
(
Reg
2
<<
6
)
+
Inst
;
}
}
inline
inline
...
...
ndb/include/util/BaseString.hpp
View file @
b9dbef8e
...
@@ -176,7 +176,7 @@ public:
...
@@ -176,7 +176,7 @@ public:
/**
/**
* Trim string from <i>delim</i>
* Trim string from <i>delim</i>
*/
*/
static
char
*
trim
(
char
*
src
,
const
char
*
delim
=
"
\t
"
);
static
char
*
trim
(
char
*
src
,
const
char
*
delim
);
private:
private:
char
*
m_chr
;
char
*
m_chr
;
unsigned
m_len
;
unsigned
m_len
;
...
...
sql/field_conv.cc
View file @
b9dbef8e
...
@@ -340,8 +340,10 @@ static void do_cut_string(Copy_field *copy)
...
@@ -340,8 +340,10 @@ static void do_cut_string(Copy_field *copy)
static
void
do_expand_string
(
Copy_field
*
copy
)
static
void
do_expand_string
(
Copy_field
*
copy
)
{
{
CHARSET_INFO
*
cs
=
copy
->
from_field
->
charset
();
memcpy
(
copy
->
to_ptr
,
copy
->
from_ptr
,
copy
->
from_length
);
memcpy
(
copy
->
to_ptr
,
copy
->
from_ptr
,
copy
->
from_length
);
bfill
(
copy
->
to_ptr
+
copy
->
from_length
,
copy
->
to_length
-
copy
->
from_length
,
' '
);
cs
->
cset
->
fill
(
cs
,
copy
->
to_ptr
+
copy
->
from_length
,
copy
->
to_length
-
copy
->
from_length
,
' '
);
}
}
static
void
do_varstring
(
Copy_field
*
copy
)
static
void
do_varstring
(
Copy_field
*
copy
)
...
...
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