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
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
Show 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)
...
@@ -1782,7 +1782,7 @@ String *Item_func_conv_charset::val_str(String *str)
int
cnvres
;
int
cnvres
;
const
uchar
*
s
,
*
se
;
const
uchar
*
s
,
*
se
;
uchar
*
d
,
*
d0
,
*
de
;
uchar
*
d
,
*
d0
,
*
de
;
uint
dmaxlen
;
uint
32
dmaxlen
;
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
CHARSET_INFO
*
from
,
*
to
;
CHARSET_INFO
*
from
,
*
to
;
...
@@ -1833,7 +1833,7 @@ String *Item_func_conv_charset::val_str(String *str)
...
@@ -1833,7 +1833,7 @@ String *Item_func_conv_charset::val_str(String *str)
break
;
break
;
};
};
str
->
length
((
uint
)
(
d
-
d0
));
str
->
length
((
uint
32
)
(
d
-
d0
));
str
->
set_charset
(
to
);
str
->
set_charset
(
to
);
return
str
;
return
str
;
}
}
...
@@ -1850,7 +1850,7 @@ String *Item_func_conv_charset3::val_str(String *str)
...
@@ -1850,7 +1850,7 @@ String *Item_func_conv_charset3::val_str(String *str)
int
cnvres
;
int
cnvres
;
const
uchar
*
s
,
*
se
;
const
uchar
*
s
,
*
se
;
uchar
*
d
,
*
d0
,
*
de
;
uchar
*
d
,
*
d0
,
*
de
;
uint
dmaxlen
;
uint
32
dmaxlen
;
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
String
*
arg
=
args
[
0
]
->
val_str
(
str
);
String
*
to_cs
=
args
[
1
]
->
val_str
(
str
);
String
*
to_cs
=
args
[
1
]
->
val_str
(
str
);
String
*
from_cs
=
args
[
2
]
->
val_str
(
str
);
String
*
from_cs
=
args
[
2
]
->
val_str
(
str
);
...
@@ -1905,7 +1905,7 @@ String *Item_func_conv_charset3::val_str(String *str)
...
@@ -1905,7 +1905,7 @@ String *Item_func_conv_charset3::val_str(String *str)
break
;
break
;
};
};
str
->
length
((
uint
)
(
d
-
d0
));
str
->
length
((
uint
32
)
(
d
-
d0
));
str
->
set_charset
(
to_charset
);
str
->
set_charset
(
to_charset
);
return
str
;
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