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
823661bd
Commit
823661bd
authored
Mar 05, 2010
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
manual merge
parents
d41ce6d6
a3edaa0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
37 deletions
+37
-37
mysql-test/r/explain.result
mysql-test/r/explain.result
+17
-16
mysql-test/t/explain.test
mysql-test/t/explain.test
+20
-21
No files found.
mysql-test/r/explain.result
View file @
823661bd
...
@@ -168,6 +168,23 @@ WHERE t1.a = d1.a;
...
@@ -168,6 +168,23 @@ WHERE t1.a = d1.a;
ERROR 42S22: Unknown column 'd1.a' in 'where clause'
ERROR 42S22: Unknown column 'd1.a' in 'where clause'
DROP TABLE t1;
DROP TABLE t1;
#
#
# Bug#48295:
# explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
#
CREATE TABLE t1 (f1 INT);
SELECT @@session.sql_mode INTO @old_sql_mode;
SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
EXPLAIN EXTENDED SELECT 1 FROM t1
WHERE f1 > ALL( SELECT t.f1 FROM t1,t1 AS t );
ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
SHOW WARNINGS;
Level Code Message
Error 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Note 1003 select 1 AS `1` from `test`.`t1` where <not>(<exists>(...))
SET SESSION sql_mode=@old_sql_mode;
DROP TABLE t1;
End of 5.0 tests.
#
# Bug#37870: Usage of uninitialized value caused failed assertion.
# Bug#37870: Usage of uninitialized value caused failed assertion.
#
#
create table t1 (dt datetime not null, t time not null);
create table t1 (dt datetime not null, t time not null);
...
@@ -195,22 +212,6 @@ dt
...
@@ -195,22 +212,6 @@ dt
2001-01-01 01:01:01
2001-01-01 01:01:01
drop tables t1, t2;
drop tables t1, t2;
#
#
# Bug#48295:
# explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
#
CREATE TABLE t1 (f1 INT);
SELECT @@session.sql_mode INTO @old_sql_mode;
SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
EXPLAIN EXTENDED SELECT 1 FROM t1
WHERE f1 > ALL( SELECT t.f1 FROM t1,t1 AS t );
ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
SHOW WARNINGS;
Level Code Message
Error 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Note 1003 select 1 AS `1` from `test`.`t1` where <not>(<exists>(...))
SET SESSION sql_mode=@old_sql_mode;
DROP TABLE t1;
#
# Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query
# Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query
#
#
CREATE TABLE t1 (c int);
CREATE TABLE t1 (c int);
...
...
mysql-test/t/explain.test
View file @
823661bd
...
@@ -147,26 +147,6 @@ EXPLAIN SELECT DISTINCT 1 FROM t1,
...
@@ -147,26 +147,6 @@ EXPLAIN SELECT DISTINCT 1 FROM t1,
WHERE
t1
.
a
=
d1
.
a
;
WHERE
t1
.
a
=
d1
.
a
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# End of 5.0 tests.
--
echo
#
--
echo
# Bug#37870: Usage of uninitialized value caused failed assertion.
--
echo
#
create
table
t1
(
dt
datetime
not
null
,
t
time
not
null
);
create
table
t2
(
dt
datetime
not
null
);
insert
into
t1
values
(
'2001-01-01 1:1:1'
,
'1:1:1'
),
(
'2001-01-01 1:1:1'
,
'1:1:1'
);
insert
into
t2
values
(
'2001-01-01 1:1:1'
),
(
'2001-01-01 1:1:1'
);
flush
tables
;
EXPLAIN
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
dt
IS
NULL
);
flush
tables
;
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
dt
IS
NULL
);
flush
tables
;
EXPLAIN
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
t
<
'2005-11-13 7:41:31'
);
flush
tables
;
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
t
<
'2005-11-13 7:41:31'
);
drop
tables
t1
,
t2
;
--
echo
#
--
echo
#
--
echo
# Bug#48295:
--
echo
# Bug#48295:
--
echo
# explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
--
echo
# explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
...
@@ -187,6 +167,26 @@ SET SESSION sql_mode=@old_sql_mode;
...
@@ -187,6 +167,26 @@ SET SESSION sql_mode=@old_sql_mode;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
.
--
echo
#
--
echo
# Bug#37870: Usage of uninitialized value caused failed assertion.
--
echo
#
create
table
t1
(
dt
datetime
not
null
,
t
time
not
null
);
create
table
t2
(
dt
datetime
not
null
);
insert
into
t1
values
(
'2001-01-01 1:1:1'
,
'1:1:1'
),
(
'2001-01-01 1:1:1'
,
'1:1:1'
);
insert
into
t2
values
(
'2001-01-01 1:1:1'
),
(
'2001-01-01 1:1:1'
);
flush
tables
;
EXPLAIN
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
dt
IS
NULL
);
flush
tables
;
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
dt
IS
NULL
);
flush
tables
;
EXPLAIN
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
t
<
'2005-11-13 7:41:31'
);
flush
tables
;
SELECT
OUTR
.
dt
FROM
t1
AS
OUTR
WHERE
OUTR
.
dt
IN
(
SELECT
INNR
.
dt
FROM
t2
AS
INNR
WHERE
OUTR
.
t
<
'2005-11-13 7:41:31'
);
drop
tables
t1
,
t2
;
--
echo
#
--
echo
#
--
echo
# Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query
--
echo
# Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query
--
echo
#
--
echo
#
...
@@ -198,5 +198,4 @@ INSERT INTO t2 VALUES (NULL), (0);
...
@@ -198,5 +198,4 @@ INSERT INTO t2 VALUES (NULL), (0);
EXPLAIN
EXTENDED
SELECT
(
SELECT
1
FROM
t2
WHERE
d
=
c
)
FROM
t1
;
EXPLAIN
EXTENDED
SELECT
(
SELECT
1
FROM
t2
WHERE
d
=
c
)
FROM
t1
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.1
tests
.
--
echo
End
of
5.1
tests
.
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