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
65cf7e62
Commit
65cf7e62
authored
Mar 29, 2002
by
bar@gw.udmsearch.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item_strfunc.cc:
Fix for possible bug when string length is more than 64K
parent
3d555fe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/item_strfunc.cc
sql/item_strfunc.cc
+4
-4
No files found.
sql/item_strfunc.cc
View file @
65cf7e62
...
...
@@ -1782,7 +1782,7 @@ String *Item_func_conv_charset::val_str(String *str)
int
cnvres
;
const
uchar
*
s
,
*
se
;
uchar
*
d
,
*
d0
,
*
de
;
uint
dmaxlen
;
uint
32
dmaxlen
;
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
CHARSET_INFO
*
from
,
*
to
;
...
...
@@ -1833,7 +1833,7 @@ outp:
break
;
};
str
->
length
((
uint
)
(
d
-
d0
));
str
->
length
((
uint
32
)
(
d
-
d0
));
str
->
set_charset
(
to
);
return
str
;
}
...
...
@@ -1850,7 +1850,7 @@ String *Item_func_conv_charset3::val_str(String *str)
int
cnvres
;
const
uchar
*
s
,
*
se
;
uchar
*
d
,
*
d0
,
*
de
;
uint
dmaxlen
;
uint
32
dmaxlen
;
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
String
*
to_cs
=
args
[
1
]
->
val_str
(
str
);
String
*
from_cs
=
args
[
2
]
->
val_str
(
str
);
...
...
@@ -1905,7 +1905,7 @@ outp:
break
;
};
str
->
length
((
uint
)
(
d
-
d0
));
str
->
length
((
uint
32
)
(
d
-
d0
));
str
->
set_charset
(
to_charset
);
return
str
;
}
...
...
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