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
5eb8fa9e
Commit
5eb8fa9e
authored
Dec 12, 2003
by
vva@eagle.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refixed last vva patch with monty's instructions
parent
00d339c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/field.cc
sql/field.cc
+2
-2
No files found.
sql/field.cc
View file @
5eb8fa9e
...
...
@@ -4623,7 +4623,7 @@ void Field_enum::store(const char *from,uint length)
uint
tmp
=
find_enum
(
typelib
,
from
,
length
);
if
(
!
tmp
)
{
if
(
from
&&
length
<
6
)
// Can't be more than 99999 enums
if
(
length
<
6
)
// Can't be more than 99999 enums
{
/* This is for reading numbers with LOAD DATA INFILE */
char
buff
[
7
],
*
end
;
...
...
@@ -4721,7 +4721,7 @@ String *Field_enum::val_str(String *val_buffer __attribute__((unused)),
{
uint
tmp
=
(
uint
)
Field_enum
::
val_int
();
if
(
!
tmp
||
tmp
>
typelib
->
count
)
val_ptr
->
length
(
0
);
val_ptr
->
set
((
char
*
)
""
,
0
);
else
val_ptr
->
set
((
const
char
*
)
typelib
->
type_names
[
tmp
-
1
],
(
uint
)
strlen
(
typelib
->
type_names
[
tmp
-
1
]));
...
...
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