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
f6995841
Commit
f6995841
authored
Oct 28, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
1eaf95d5
552c208b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
mysql-test/r/func_math.result
mysql-test/r/func_math.result
+6
-0
mysql-test/r/type_newdecimal.result
mysql-test/r/type_newdecimal.result
+1
-1
mysql-test/t/func_math.test
mysql-test/t/func_math.test
+10
-0
sql/item_func.cc
sql/item_func.cc
+1
-0
No files found.
mysql-test/r/func_math.result
View file @
f6995841
...
...
@@ -170,6 +170,12 @@ insert into t1 values (1);
select rand(i) from t1;
ERROR HY000: Incorrect arguments to RAND
drop table t1;
create table t1 (a varchar(90), ts datetime not null, index (a)) engine=innodb default charset=utf8;
insert into t1 values ('http://www.foo.com/', now());
select a from t1 where a='http://www.foo.com/' order by abs(timediff(ts, 0));
a
http://www.foo.com/
drop table t1;
set sql_mode='traditional';
select ln(-1);
ln(-1)
...
...
mysql-test/r/type_newdecimal.result
View file @
f6995841
...
...
@@ -176,7 +176,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`round(15.4,-1)` decimal(3,0) unsigned NOT NULL default '0',
`truncate(-5678.123451,-3)` decimal(4,0) NOT NULL default '0',
`abs(-1.1)` decimal(2,1)
NOT NULL default '0.0'
,
`abs(-1.1)` decimal(2,1)
default NULL
,
`-(-1.1)` decimal(2,1) NOT NULL default '0.0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
...
...
mysql-test/t/func_math.test
View file @
f6995841
...
...
@@ -116,6 +116,16 @@ insert into t1 values (1);
select
rand
(
i
)
from
t1
;
drop
table
t1
;
#
# Bug #14009: use of abs() on null value causes problems with filesort
#
# InnoDB is required to reproduce the fault, but it is okay if we default to
# MyISAM when testing.
create
table
t1
(
a
varchar
(
90
),
ts
datetime
not
null
,
index
(
a
))
engine
=
innodb
default
charset
=
utf8
;
insert
into
t1
values
(
'http://www.foo.com/'
,
now
());
select
a
from
t1
where
a
=
'http://www.foo.com/'
order
by
abs
(
timediff
(
ts
,
0
));
drop
table
t1
;
# End of 4.1 tests
#
...
...
sql/item_func.cc
View file @
f6995841
...
...
@@ -636,6 +636,7 @@ void Item_func_num1::fix_num_length_and_dec()
{
decimals
=
args
[
0
]
->
decimals
;
max_length
=
args
[
0
]
->
max_length
;
maybe_null
=
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