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
7d3c4c29
Commit
7d3c4c29
authored
Apr 07, 2007
by
Kristofer.Pettersson@naruto
Browse files
Options
Browse Files
Download
Plain Diff
Merge naruto.:C:/cpp/bug26121/my51-bug26121
into naruto.:C:/cpp/mysql-5.1-runtime
parents
e782e5d5
19027868
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
client/mysqldump.c
client/mysqldump.c
+12
-4
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+7
-0
No files found.
client/mysqldump.c
View file @
7d3c4c29
...
@@ -829,11 +829,15 @@ static int get_options(int *argc, char ***argv)
...
@@ -829,11 +829,15 @@ static int get_options(int *argc, char ***argv)
(
hash_get_key
)
get_table_key
,
(
hash_get_key
)
get_table_key
,
(
hash_free_key
)
free_table_ent
,
0
))
(
hash_free_key
)
free_table_ent
,
0
))
return
(
EX_EOM
);
return
(
EX_EOM
);
/* Don't copy
cluster
internal log tables */
/* Don't copy internal log tables */
if
(
my_hash_insert
(
&
ignore_table
,
if
(
my_hash_insert
(
&
ignore_table
,
(
byte
*
)
my_strdup
(
"mysql.apply_status"
,
MYF
(
MY_WME
)))
||
(
byte
*
)
my_strdup
(
"mysql.apply_status"
,
MYF
(
MY_WME
)))
||
my_hash_insert
(
&
ignore_table
,
my_hash_insert
(
&
ignore_table
,
(
byte
*
)
my_strdup
(
"mysql.schema"
,
MYF
(
MY_WME
))))
(
byte
*
)
my_strdup
(
"mysql.schema"
,
MYF
(
MY_WME
)))
||
my_hash_insert
(
&
ignore_table
,
(
byte
*
)
my_strdup
(
"mysql.general_log"
,
MYF
(
MY_WME
)))
||
my_hash_insert
(
&
ignore_table
,
(
byte
*
)
my_strdup
(
"mysql.slow_log"
,
MYF
(
MY_WME
))))
return
(
EX_EOM
);
return
(
EX_EOM
);
if
((
ho_error
=
handle_options
(
argc
,
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
argc
,
argv
,
my_long_options
,
get_one_option
)))
...
@@ -3352,10 +3356,14 @@ static int dump_all_tables_in_db(char *database)
...
@@ -3352,10 +3356,14 @@ static int dump_all_tables_in_db(char *database)
DYNAMIC_STRING
query
;
DYNAMIC_STRING
query
;
init_dynamic_string_checked
(
&
query
,
"LOCK TABLES "
,
256
,
1024
);
init_dynamic_string_checked
(
&
query
,
"LOCK TABLES "
,
256
,
1024
);
for
(
numrows
=
0
;
(
table
=
getTableName
(
1
))
;
numrows
++
)
for
(
numrows
=
0
;
(
table
=
getTableName
(
1
))
;
numrows
++
)
{
char
*
end
=
strmov
(
afterdot
,
table
);
if
(
include_table
(
hash_key
,
end
-
hash_key
))
{
{
dynstr_append_checked
(
&
query
,
quote_name
(
table
,
table_buff
,
1
));
dynstr_append_checked
(
&
query
,
quote_name
(
table
,
table_buff
,
1
));
dynstr_append_checked
(
&
query
,
" READ /*!32311 LOCAL */,"
);
dynstr_append_checked
(
&
query
,
" READ /*!32311 LOCAL */,"
);
}
}
}
if
(
numrows
&&
mysql_real_query
(
mysql
,
query
.
str
,
query
.
length
-
1
))
if
(
numrows
&&
mysql_real_query
(
mysql
,
query
.
str
,
query
.
length
-
1
))
DB_error
(
mysql
,
"when using LOCK TABLES"
);
DB_error
(
mysql
,
"when using LOCK TABLES"
);
/* We shall continue here, if --force was given */
/* We shall continue here, if --force was given */
...
...
mysql-test/t/mysqldump.test
View file @
7d3c4c29
...
@@ -1612,6 +1612,13 @@ drop view v1;
...
@@ -1612,6 +1612,13 @@ drop view v1;
drop
table
t1
;
drop
table
t1
;
drop
database
mysqldump_test_db
;
drop
database
mysqldump_test_db
;
#
# BUG#26121 mysqldump includes LOCK TABLES general_log WRITE
#
--
exec
$MYSQL_DUMP
--
all
-
databases
>
$MYSQLTEST_VARDIR
/
tmp
/
bug26121
.
sql
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug26121
.
sql
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bug26121
.
sql
--
echo
#
--
echo
#
--
echo
# End of 5.1 tests
--
echo
# End of 5.1 tests
--
echo
#
--
echo
#
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