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
fbab0685
Commit
fbab0685
authored
Apr 28, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge changes, fixes, and tests
parent
67a3ddf1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
55 additions
and
13 deletions
+55
-13
mysql-test/r/blackhole.result
mysql-test/r/blackhole.result
+7
-0
mysql-test/r/group_by.result
mysql-test/r/group_by.result
+10
-0
mysql-test/r/sp-destruct.result
mysql-test/r/sp-destruct.result
+4
-0
mysql-test/t/blackhole.test
mysql-test/t/blackhole.test
+10
-0
mysql-test/t/group_by.test
mysql-test/t/group_by.test
+11
-0
mysql-test/t/sp-destruct.test
mysql-test/t/sp-destruct.test
+8
-0
sql/item.h
sql/item.h
+0
-4
sql/mysqld.cc
sql/mysqld.cc
+3
-2
sql/sp.cc
sql/sp.cc
+2
-7
No files found.
mysql-test/r/blackhole.result
View file @
fbab0685
...
...
@@ -8,4 +8,11 @@ CREATE TABLE t2 (a INT UNSIGNED, b INT, UNIQUE KEY (a, b)) ENGINE=BLACKHOLE;
SELECT 1 FROM t1 WHERE a = ANY (SELECT a FROM t2);
1
DROP TABLE t1, t2;
create temporary table t1 (a int) engine=blackhole;
lock table t1 write;
truncate table t1;
select * from t1;
a
unlock tables;
drop temporary table t1;
End of 5.5 tests
mysql-test/r/group_by.result
View file @
fbab0685
...
...
@@ -2339,6 +2339,16 @@ MIN(a) b
0 a
DROP TABLE t1;
create table t1 (a int, b int);
insert into t1 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
create table t2 (c int, d int);
insert into t2 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
select distinct a,sum(b), (select d from t2 where c=a order by max(b) limit 1) from t1 group by a order by max(b);
a sum(b) (select d from t2 where c=a order by max(b) limit 1)
1 23 11
2 45 22
4 89 44
drop table t1, t2;
#
# LP bug#993726 Wrong result from a query with ALL subquery predicate in WHERE
#
...
...
mysql-test/r/sp-destruct.result
View file @
fbab0685
...
...
@@ -170,3 +170,7 @@ Error 1548 Cannot load from mysql.proc. The table is probably corrupted
# Restore mysql.proc
DROP TABLE mysql.proc;
RENAME TABLE proc_backup TO mysql.proc;
create database mysqltest1;
create procedure mysqltest1.foo() select "foo";
update mysql.proc set name='' where db='mysqltest1';
drop database mysqltest1;
mysql-test/t/blackhole.test
View file @
fbab0685
...
...
@@ -17,5 +17,15 @@ SELECT 1 FROM t1 WHERE a = ANY (SELECT a FROM t2);
DROP
TABLE
t1
,
t2
;
#
# Bug#19786309 - CRASH IN UNLOCK TABLES AFTER LOCKING AND TRUNCATING TEMPORARY TABLE.
#
create
temporary
table
t1
(
a
int
)
engine
=
blackhole
;
lock
table
t1
write
;
truncate
table
t1
;
select
*
from
t1
;
unlock
tables
;
drop
temporary
table
t1
;
--
echo
End
of
5.5
tests
mysql-test/t/group_by.test
View file @
fbab0685
...
...
@@ -1516,6 +1516,17 @@ let $query= SELECT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
--
echo
DROP
TABLE
t1
;
#
# Bug#19880368 : GROUP_CONCAT CRASHES AFTER DUMP_LEAF_KEY
#
create
table
t1
(
a
int
,
b
int
);
insert
into
t1
values
(
1
,
11
),
(
1
,
12
),
(
2
,
22
),(
2
,
23
),
(
4
,
44
),(
4
,
45
);
create
table
t2
(
c
int
,
d
int
);
insert
into
t2
values
(
1
,
11
),
(
1
,
12
),
(
2
,
22
),(
2
,
23
),
(
4
,
44
),(
4
,
45
);
select
distinct
a
,
sum
(
b
),
(
select
d
from
t2
where
c
=
a
order
by
max
(
b
)
limit
1
)
from
t1
group
by
a
order
by
max
(
b
);
drop
table
t1
,
t2
;
--
echo
#
--
echo
# LP bug#993726 Wrong result from a query with ALL subquery predicate in WHERE
--
echo
#
...
...
mysql-test/t/sp-destruct.test
View file @
fbab0685
...
...
@@ -281,3 +281,11 @@ DROP DATABASE db1;
--
echo
# Restore mysql.proc
DROP
TABLE
mysql
.
proc
;
RENAME
TABLE
proc_backup
TO
mysql
.
proc
;
#
# BUG#19875331 - HANDLE_FATAL_SIGNAL 11 IN STRMAKE
#
create
database
mysqltest1
;
create
procedure
mysqltest1
.
foo
()
select
"foo"
;
update
mysql
.
proc
set
name
=
''
where
db
=
'mysqltest1'
;
drop
database
mysqltest1
;
sql/item.h
View file @
fbab0685
...
...
@@ -4103,11 +4103,7 @@ class Item_cache: public Item_basic_constant
collation
.
set
(
item
->
collation
);
unsigned_flag
=
item
->
unsigned_flag
;
if
(
item
->
type
()
==
FIELD_ITEM
)
{
cached_field
=
((
Item_field
*
)
item
)
->
field
;
if
(
cached_field
->
table
)
used_table_map
=
cached_field
->
table
->
map
;
}
return
0
;
};
enum
Type
type
()
const
{
return
CACHE_ITEM
;
}
...
...
sql/mysqld.cc
View file @
fbab0685
...
...
@@ -3607,8 +3607,9 @@ static int init_common_variables()
return
1
;
set_server_version
();
sql_print_information
(
"%s (mysqld %s) starting as process %lu ..."
,
my_progname
,
server_version
,
(
ulong
)
getpid
());
if
(
!
opt_help
)
sql_print_information
(
"%s (mysqld %s) starting as process %lu ..."
,
my_progname
,
server_version
,
(
ulong
)
getpid
());
#ifndef EMBEDDED_LIBRARY
if
(
opt_abort
&&
!
opt_verbose
)
...
...
sql/sp.cc
View file @
fbab0685
...
...
@@ -1495,13 +1495,8 @@ bool lock_db_routines(THD *thd, char *db)
{
char
*
sp_name
=
get_field
(
thd
->
mem_root
,
table
->
field
[
MYSQL_PROC_FIELD_NAME
]);
if
(
sp_name
==
NULL
)
{
table
->
file
->
ha_index_end
();
my_error
(
ER_SP_WRONG_NAME
,
MYF
(
0
),
""
);
close_system_tables
(
thd
,
&
open_tables_state_backup
);
DBUG_RETURN
(
true
);
}
if
(
sp_name
==
NULL
)
// skip invalid sp names (hand-edited mysql.proc?)
continue
;
longlong
sp_type
=
table
->
field
[
MYSQL_PROC_MYSQL_TYPE
]
->
val_int
();
MDL_request
*
mdl_request
=
new
(
thd
->
mem_root
)
MDL_request
;
...
...
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