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
a1a49ec9
Commit
a1a49ec9
authored
Jan 21, 2014
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
0e593c12
41208f6e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
sql/sql_insert.cc
sql/sql_insert.cc
+2
-1
storage/tokudb/mysql-test/tokudb_mariadb/r/mdev5426.result
storage/tokudb/mysql-test/tokudb_mariadb/r/mdev5426.result
+6
-0
storage/tokudb/mysql-test/tokudb_mariadb/t/mdev5426.test
storage/tokudb/mysql-test/tokudb_mariadb/t/mdev5426.test
+10
-0
No files found.
sql/sql_insert.cc
View file @
a1a49ec9
...
@@ -3555,7 +3555,8 @@ int select_insert::prepare2(void)
...
@@ -3555,7 +3555,8 @@ int select_insert::prepare2(void)
{
{
DBUG_ENTER
(
"select_insert::prepare2"
);
DBUG_ENTER
(
"select_insert::prepare2"
);
if
(
thd
->
lex
->
current_select
->
options
&
OPTION_BUFFER_RESULT
&&
if
(
thd
->
lex
->
current_select
->
options
&
OPTION_BUFFER_RESULT
&&
thd
->
locked_tables_mode
<=
LTM_LOCK_TABLES
)
thd
->
locked_tables_mode
<=
LTM_LOCK_TABLES
&&
!
thd
->
lex
->
describe
)
table
->
file
->
ha_start_bulk_insert
((
ha_rows
)
0
);
table
->
file
->
ha_start_bulk_insert
((
ha_rows
)
0
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
...
storage/tokudb/mysql-test/tokudb_mariadb/r/mdev5426.result
0 → 100644
View file @
a1a49ec9
CREATE TABLE t1 (i INT) ENGINE=TokuDB;
EXPLAIN INSERT INTO t1 SELECT * FROM t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using temporary
INSERT INTO t1 SELECT * FROM t1;
DROP TABLE t1;
storage/tokudb/mysql-test/tokudb_mariadb/t/mdev5426.test
0 → 100644
View file @
a1a49ec9
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
TokuDB
;
EXPLAIN
INSERT
INTO
t1
SELECT
*
FROM
t1
;
--
connect
con1
,
localhost
,
root
,,
test
INSERT
INTO
t1
SELECT
*
FROM
t1
;
--
connection
default
--
disconnect
con1
DROP
TABLE
t1
;
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