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
1c46a020
Commit
1c46a020
authored
Apr 06, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor clean-ups for the previous commit.
parent
0c2caeb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sql/field.cc
sql/field.cc
+4
-4
strings/ctype-mb.c
strings/ctype-mb.c
+1
-1
No files found.
sql/field.cc
View file @
1c46a020
...
@@ -4914,7 +4914,7 @@ void Field_datetime::sql_type(String &res) const
...
@@ -4914,7 +4914,7 @@ void Field_datetime::sql_type(String &res) const
int
Field_string
::
store
(
const
char
*
from
,
uint
length
,
CHARSET_INFO
*
cs
)
int
Field_string
::
store
(
const
char
*
from
,
uint
length
,
CHARSET_INFO
*
cs
)
{
{
int
error
=
0
;
int
error
=
0
,
well_formed_error
;
uint32
not_used
;
uint32
not_used
;
char
buff
[
80
];
char
buff
[
80
];
String
tmpstr
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
String
tmpstr
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
...
@@ -4942,7 +4942,7 @@ int Field_string::store(const char *from,uint length,CHARSET_INFO *cs)
...
@@ -4942,7 +4942,7 @@ int Field_string::store(const char *from,uint length,CHARSET_INFO *cs)
from
,
from
+
length
,
from
,
from
+
length
,
field_length
/
field_length
/
field_charset
->
mbmaxlen
,
field_charset
->
mbmaxlen
,
&
error
);
&
well_formed_
error
);
memcpy
(
ptr
,
from
,
copy_length
);
memcpy
(
ptr
,
from
,
copy_length
);
if
(
copy_length
<
field_length
)
// Append spaces if shorter
if
(
copy_length
<
field_length
)
// Append spaces if shorter
field_charset
->
cset
->
fill
(
field_charset
,
ptr
+
copy_length
,
field_charset
->
cset
->
fill
(
field_charset
,
ptr
+
copy_length
,
...
@@ -5545,7 +5545,7 @@ void Field_blob::put_length(char *pos, uint32 length)
...
@@ -5545,7 +5545,7 @@ void Field_blob::put_length(char *pos, uint32 length)
int
Field_blob
::
store
(
const
char
*
from
,
uint
length
,
CHARSET_INFO
*
cs
)
int
Field_blob
::
store
(
const
char
*
from
,
uint
length
,
CHARSET_INFO
*
cs
)
{
{
int
error
=
0
;
int
error
=
0
,
well_formed_error
;
if
(
!
length
)
if
(
!
length
)
{
{
bzero
(
ptr
,
Field_blob
::
pack_length
());
bzero
(
ptr
,
Field_blob
::
pack_length
());
...
@@ -5580,7 +5580,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs)
...
@@ -5580,7 +5580,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs)
from
,
from
+
from
,
from
+
min
(
length
,
copy_length
),
min
(
length
,
copy_length
),
copy_length
,
copy_length
,
&
error
);
&
well_formed_
error
);
if
(
copy_length
<
length
)
if
(
copy_length
<
length
)
error
=
1
;
error
=
1
;
Field_blob
::
store_length
(
copy_length
);
Field_blob
::
store_length
(
copy_length
);
...
...
strings/ctype-mb.c
View file @
1c46a020
...
@@ -276,7 +276,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs, const char *b, const char *e,
...
@@ -276,7 +276,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs, const char *b, const char *e,
if
((
mblen
=
cs
->
cset
->
mb_wc
(
cs
,
&
wc
,
(
uchar
*
)
b
,
(
uchar
*
)
e
))
<=
0
)
if
((
mblen
=
cs
->
cset
->
mb_wc
(
cs
,
&
wc
,
(
uchar
*
)
b
,
(
uchar
*
)
e
))
<=
0
)
{
{
*
error
=
1
;
*
error
=
b
<
e
?
1
:
0
;
break
;
break
;
}
}
b
+=
mblen
;
b
+=
mblen
;
...
...
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