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
6170af8c
Commit
6170af8c
authored
Mar 16, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings removed
parent
9c6b9eba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/field.cc
sql/field.cc
+5
-5
No files found.
sql/field.cc
View file @
6170af8c
...
...
@@ -107,7 +107,7 @@ bool test_if_int(const char *str, int length, const char *int_end,
return
1
;
}
#ifdef NOT_USED
static
bool
test_if_real
(
const
char
*
str
,
int
length
,
CHARSET_INFO
*
cs
)
{
cs
=
system_charset_info
;
// QQ move test_if_real into CHARSET_INFO struct
...
...
@@ -159,7 +159,7 @@ static bool test_if_real(const char *str,int length, CHARSET_INFO *cs)
}
return
1
;
}
#endif
static
inline
uint
field_length_without_space
(
const
char
*
ptr
,
uint
length
)
{
...
...
@@ -2273,7 +2273,7 @@ int Field_float::store(const char *from,uint len,CHARSET_INFO *cs)
int
err
;
char
*
end
;
double
nr
=
my_strntod
(
cs
,(
char
*
)
from
,
len
,
&
end
,
&
err
);
if
(
!
err
&&
(
!
current_thd
->
count_cuted_fields
||
end
-
from
==
len
))
if
(
!
err
&&
(
!
current_thd
->
count_cuted_fields
||
end
-
from
==
(
int
)
len
))
{
return
Field_float
::
store
(
nr
);
}
...
...
@@ -2570,8 +2570,8 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
{
int
err
;
char
*
end
;
double
nr
=
my_strntod
(
cs
,(
char
*
)
from
,
len
,
&
end
,
&
err
);
if
(
!
err
&&
(
!
current_thd
->
count_cuted_fields
||
end
-
from
==
len
))
double
nr
=
my_strntod
(
cs
,(
char
*
)
from
,
len
,
&
end
,
&
err
);
if
(
!
err
&&
(
!
current_thd
->
count_cuted_fields
||
end
-
from
==
(
int
)
len
))
{
return
Field_double
::
store
(
nr
);
}
...
...
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