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
2b8bad59
Commit
2b8bad59
authored
Apr 28, 2007
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/home/kaa/src/maint/mysql-5.0-maint
into polly.local:/home/kaa/src/maint/mysql-5.1-maint
parents
95a0c5e7
edf6b733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/item_func.cc
sql/item_func.cc
+3
-3
No files found.
sql/item_func.cc
View file @
2b8bad59
...
...
@@ -2066,7 +2066,7 @@ longlong Item_func_round::int_op()
else
value
=
(
unsigned_flag
||
value
>=
0
)
?
my_unsigned_round
((
ulonglong
)
value
,
tmp
)
:
-
my_unsigned_round
((
ulonglong
)
-
value
,
tmp
);
-
(
longlong
)
my_unsigned_round
((
ulonglong
)
-
value
,
tmp
);
return
value
;
}
...
...
@@ -2078,13 +2078,13 @@ my_decimal *Item_func_round::decimal_op(my_decimal *decimal_value)
if
(
dec
>
0
||
(
dec
<
0
&&
args
[
1
]
->
unsigned_flag
))
{
dec
=
min
((
ulonglong
)
dec
,
DECIMAL_MAX_SCALE
);
decimals
=
dec
;
// to get correct output
decimals
=
(
uint8
)
dec
;
// to get correct output
}
else
if
(
dec
<
INT_MIN
)
dec
=
INT_MIN
;
if
(
!
(
null_value
=
(
args
[
0
]
->
null_value
||
args
[
1
]
->
null_value
||
my_decimal_round
(
E_DEC_FATAL_ERROR
,
value
,
dec
,
my_decimal_round
(
E_DEC_FATAL_ERROR
,
value
,
(
int
)
dec
,
truncate
,
decimal_value
)
>
1
)))
return
decimal_value
;
return
0
;
...
...
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