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
64f6fb7c
Commit
64f6fb7c
authored
Jul 24, 2009
by
Alexey Kopytov
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge.
parents
606e5bf6
c76f98a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/r/insert_select.result
mysql-test/r/insert_select.result
+13
-0
mysql-test/t/insert_select.test
mysql-test/t/insert_select.test
+21
-0
sql/sql_select.cc
sql/sql_select.cc
+5
-0
No files found.
mysql-test/r/insert_select.result
View file @
64f6fb7c
...
...
@@ -833,3 +833,16 @@ Table Op Msg_type Msg_text
test.t2 check status OK
drop table t1,t2;
##################################################################
#
# Bug #46075: Assertion failed: 0, file .\protocol.cc, line 416
#
CREATE TABLE t1(a INT);
SET max_heap_table_size = 16384;
SET @old_myisam_data_pointer_size = @@myisam_data_pointer_size;
SET GLOBAL myisam_data_pointer_size = 2;
INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
INSERT IGNORE INTO t1 SELECT t1.a FROM t1,t1 t2,t1 t3,t1 t4,t1 t5,t1 t6,t1 t7;
Got one of the listed errors
SET GLOBAL myisam_data_pointer_size = @old_myisam_data_pointer_size;
DROP TABLE t1;
End of 5.0 tests
mysql-test/t/insert_select.test
View file @
64f6fb7c
...
...
@@ -394,3 +394,24 @@ check table t2 extended;
drop
table
t1
,
t2
;
--
echo
##################################################################
--
echo
#
--
echo
# Bug #46075: Assertion failed: 0, file .\protocol.cc, line 416
--
echo
#
CREATE
TABLE
t1
(
a
INT
);
# To force MyISAM temp. table in the following INSERT ... SELECT.
SET
max_heap_table_size
=
16384
;
# To overflow the temp. table.
SET
@
old_myisam_data_pointer_size
=
@@
myisam_data_pointer_size
;
SET
GLOBAL
myisam_data_pointer_size
=
2
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
),
(
4
),
(
5
);
--
error
ER_RECORD_FILE_FULL
,
ER_RECORD_FILE_FULL
INSERT
IGNORE
INTO
t1
SELECT
t1
.
a
FROM
t1
,
t1
t2
,
t1
t3
,
t1
t4
,
t1
t5
,
t1
t6
,
t1
t7
;
# Cleanup
SET
GLOBAL
myisam_data_pointer_size
=
@
old_myisam_data_pointer_size
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
sql/sql_select.cc
View file @
64f6fb7c
...
...
@@ -10652,6 +10652,11 @@ bool create_myisam_from_heap(THD *thd, TABLE *table, TMP_TABLE_PARAM *param,
if
(
table
->
s
->
db_type
()
!=
heap_hton
||
error
!=
HA_ERR_RECORD_FILE_FULL
)
{
/*
We don't want this error to be converted to a warning, e.g. in case of
INSERT IGNORE ... SELECT.
*/
thd
->
fatal_error
();
table
->
file
->
print_error
(
error
,
MYF
(
0
));
DBUG_RETURN
(
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