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
1ce56c2a
Commit
1ce56c2a
authored
Nov 16, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abelkin@work.mysql.com:/home/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/work-crash-4.1
parents
ecd4ac2a
49aefe3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
sql/sql_derived.cc
sql/sql_derived.cc
+1
-2
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_union.cc
sql/sql_union.cc
+7
-1
No files found.
sql/sql_derived.cc
View file @
1ce56c2a
...
...
@@ -88,6 +88,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
if
((
derived_result
=
new
select_union
(
table
)))
{
derived_result
->
tmp_table_param
=&
tmp_table_param
;
unit
->
offset_limit_cnt
=
sl
->
offset_limit
;
unit
->
select_limit_cnt
=
sl
->
select_limit
+
sl
->
offset_limit
;
if
(
unit
->
select_limit_cnt
<
sl
->
select_limit
)
...
...
@@ -128,8 +129,6 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
free_tmp_table
(
thd
,
table
);
exit:
close_thread_tables
(
thd
);
if
(
res
>
0
)
send_error
(
thd
,
ER_UNKNOWN_COM_ERROR
);
// temporary only ...
}
DBUG_RETURN
(
res
);
}
sql/sql_parse.cc
View file @
1ce56c2a
...
...
@@ -1344,7 +1344,7 @@ mysql_execute_command(THD *thd)
cursor
->
derived
,
cursor
)))
{
if
(
res
<
0
)
if
(
res
<
0
||
thd
->
net
.
report_error
)
send_error
(
thd
,
thd
->
killed
?
ER_SERVER_SHUTDOWN
:
0
);
DBUG_VOID_RETURN
;
}
...
...
sql/sql_union.cc
View file @
1ce56c2a
...
...
@@ -78,7 +78,13 @@ bool select_union::send_data(List<Item> &values)
fill_record
(
table
->
field
,
values
);
if
((
write_record
(
table
,
&
info
)))
{
if
(
create_myisam_from_heap
(
table
,
tmp_table_param
,
info
.
last_errno
,
0
))
if
(
thd
->
net
.
last_errno
==
ER_RECORD_FILE_FULL
)
{
thd
->
clear_error
();
// do not report user about table overflow
if
(
create_myisam_from_heap
(
table
,
tmp_table_param
,
info
.
last_errno
,
0
))
return
1
;
}
else
return
1
;
}
return
0
;
...
...
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