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
b6823b66
Commit
b6823b66
authored
Jul 20, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings/compilation failures reported by Jan Lindstrom
sql/field.cc: Fix warnings/compilation failures.
parent
3abb8116
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 @
b6823b66
...
...
@@ -5184,20 +5184,20 @@ int Field_date::store(const char *from, uint len,CHARSET_INFO *cs)
int
Field_date
::
store
(
double
nr
)
{
long
tmp
;
long
long
tmp
;
int
error
=
0
;
if
(
nr
>=
19000000000000.0
&&
nr
<=
99991231235959.0
)
nr
=
floor
(
nr
/
1000000.0
);
// Timestamp to date
if
(
nr
<
0.0
||
nr
>
99991231.0
)
{
tmp
=
0L
;
tmp
=
LL
(
0
)
;
set_datetime_warning
(
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_WARN_DATA_OUT_OF_RANGE
,
nr
,
MYSQL_TIMESTAMP_DATE
);
error
=
1
;
}
else
tmp
=
(
long
)
rint
(
nr
);
tmp
=
(
long
long
)
rint
(
nr
);
return
Field_date
::
store
(
tmp
);
}
...
...
@@ -6908,8 +6908,8 @@ String *Field_blob::val_str(String *val_buffer __attribute__((unused)),
my_decimal
*
Field_blob
::
val_decimal
(
my_decimal
*
decimal_value
)
{
char
*
blob
;
memcpy_fixed
(
&
blob
,
ptr
+
packlength
,
sizeof
(
char
*
));
c
onst
c
har
*
blob
;
memcpy_fixed
(
&
blob
,
ptr
+
packlength
,
sizeof
(
c
onst
c
har
*
));
if
(
!
blob
)
blob
=
""
;
str2my_decimal
(
E_DEC_FATAL_ERROR
,
blob
,
get_length
(
ptr
),
charset
(),
...
...
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