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
7dde35ae
Commit
7dde35ae
authored
Mar 16, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings removed
parent
ceec63f1
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 @
7dde35ae
...
@@ -107,7 +107,7 @@ bool test_if_int(const char *str, int length, const char *int_end,
...
@@ -107,7 +107,7 @@ bool test_if_int(const char *str, int length, const char *int_end,
return
1
;
return
1
;
}
}
#ifdef NOT_USED
static
bool
test_if_real
(
const
char
*
str
,
int
length
,
CHARSET_INFO
*
cs
)
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
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)
...
@@ -159,7 +159,7 @@ static bool test_if_real(const char *str,int length, CHARSET_INFO *cs)
}
}
return
1
;
return
1
;
}
}
#endif
static
inline
uint
field_length_without_space
(
const
char
*
ptr
,
uint
length
)
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)
...
@@ -2273,7 +2273,7 @@ int Field_float::store(const char *from,uint len,CHARSET_INFO *cs)
int
err
;
int
err
;
char
*
end
;
char
*
end
;
double
nr
=
my_strntod
(
cs
,(
char
*
)
from
,
len
,
&
end
,
&
err
);
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
);
return
Field_float
::
store
(
nr
);
}
}
...
@@ -2570,8 +2570,8 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
...
@@ -2570,8 +2570,8 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
{
{
int
err
;
int
err
;
char
*
end
;
char
*
end
;
double
nr
=
my_strntod
(
cs
,(
char
*
)
from
,
len
,
&
end
,
&
err
);
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_double
::
store
(
nr
);
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