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
34e0c982
Commit
34e0c982
authored
Jun 04, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merged 36995 to 5.1-bugteam
parents
950cc5b9
f1d1f5b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+10
-0
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+12
-0
sql/item.cc
sql/item.cc
+3
-0
No files found.
mysql-test/include/mix1.inc
View file @
34e0c982
...
...
@@ -1171,6 +1171,16 @@ CREATE TABLE t1 (f1 INTEGER PRIMARY KEY COMMENT 'My ID#', f2 INTEGER DEFAULT NUL
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #36995: valgrind error in remove_const during subquery executions
--
echo
#
create
table
t1
(
a
bit
(
1
)
not
null
,
b
int
)
engine
=
myisam
;
create
table
t2
(
c
int
)
engine
=
innodb
;
explain
select
b
from
t1
where
a
not
in
(
select
b
from
t1
,
t2
group
by
a
)
group
by
a
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.0
tests
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
...
...
mysql-test/r/innodb_mysql.result
View file @
34e0c982
...
...
@@ -1420,6 +1420,18 @@ t1 CREATE TABLE `t1` (
CONSTRAINT `f2_ref` FOREIGN KEY (`f2`) REFERENCES `t1` (`f1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
DROP TABLE t1;
#
# Bug #36995: valgrind error in remove_const during subquery executions
#
create table t1 (a bit(1) not null,b int) engine=myisam;
create table t2 (c int) engine=innodb;
explain
select b from t1 where a not in (select b from t1,t2 group by a) group by a;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 0 const row not found
2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 1
DROP TABLE t1,t2;
End of 5.0 tests
CREATE TABLE `t2` (
`k` int(11) NOT NULL auto_increment,
...
...
sql/item.cc
View file @
34e0c982
...
...
@@ -417,6 +417,7 @@ Item::Item(THD *thd, Item *item):
name
(
item
->
name
),
orig_name
(
item
->
orig_name
),
max_length
(
item
->
max_length
),
name_length
(
item
->
name_length
),
marker
(
item
->
marker
),
decimals
(
item
->
decimals
),
maybe_null
(
item
->
maybe_null
),
...
...
@@ -424,7 +425,9 @@ Item::Item(THD *thd, Item *item):
unsigned_flag
(
item
->
unsigned_flag
),
with_sum_func
(
item
->
with_sum_func
),
fixed
(
item
->
fixed
),
is_autogenerated_name
(
item
->
is_autogenerated_name
),
collation
(
item
->
collation
),
with_subselect
(
item
->
with_subselect
),
cmp_context
(
item
->
cmp_context
)
{
next
=
thd
->
free_list
;
// Put in free list
...
...
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