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
537f21ff
Commit
537f21ff
authored
May 24, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/hdc/Sinisa/mysql-4.0
parents
0c7ea54c
329bd4fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
.bzrignore
.bzrignore
+2
-0
sql/sql_class.h
sql/sql_class.h
+2
-1
sql/sql_insert.cc
sql/sql_insert.cc
+1
-0
sql/sql_union.cc
sql/sql_union.cc
+7
-2
No files found.
.bzrignore
View file @
537f21ff
...
...
@@ -469,3 +469,5 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
mysys/getopt.c
mysys/getopt1.c
sql/sql_class.h
View file @
537f21ff
...
...
@@ -182,7 +182,7 @@ typedef struct st_copy_info {
ha_rows
copied
;
ha_rows
error
;
enum
enum_duplicates
handle_duplicates
;
int
escape_char
;
int
escape_char
,
errorno
;
}
COPY_INFO
;
...
...
@@ -666,6 +666,7 @@ class select_union :public select_result {
TABLE
*
table
;
COPY_INFO
info
;
uint
save_time_stamp
;
TMP_TABLE_PARAM
*
tmp_table_param
;
select_union
(
TABLE
*
table_par
);
~
select_union
();
...
...
sql/sql_insert.cc
View file @
537f21ff
...
...
@@ -447,6 +447,7 @@ int write_record(TABLE *table,COPY_INFO *info)
err:
if
(
key
)
my_afree
(
key
);
info
->
errorno
=
error
;
table
->
file
->
print_error
(
error
,
MYF
(
0
));
return
1
;
}
...
...
sql/sql_union.cc
View file @
537f21ff
...
...
@@ -132,7 +132,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
goto
exit
;
}
union_result
->
save_time_stamp
=!
describe
;
union_result
->
tmp_table_param
=&
tmp_table_param
;
for
(
sl
=
&
lex
->
select_lex
;
sl
;
sl
=
sl
->
next
)
{
lex
->
select
=
sl
;
...
...
@@ -253,7 +253,12 @@ bool select_union::send_data(List<Item> &values)
return
0
;
}
fill_record
(
table
->
field
,
values
);
return
write_record
(
table
,
&
info
)
?
1
:
0
;
if
((
write_record
(
table
,
&
info
)))
{
if
(
create_myisam_from_heap
(
table
,
tmp_table_param
,
info
.
errorno
,
0
))
return
1
;
}
return
0
;
}
bool
select_union
::
send_eof
()
...
...
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