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
a7163ce9
Commit
a7163ce9
authored
Jul 08, 2014
by
Murthy Narkedimilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applying patch for bug 18779944
parent
d3625112
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
11 deletions
+28
-11
client/mysqldump.c
client/mysqldump.c
+28
-11
No files found.
client/mysqldump.c
View file @
a7163ce9
...
...
@@ -5538,19 +5538,36 @@ int main(int argc, char **argv)
dump_all_tablespaces
();
dump_all_databases
();
}
else
if
(
argc
>
1
&&
!
opt_databases
)
{
/* Only one database and selected table(s) */
if
(
!
opt_alltspcs
&&
!
opt_notspcs
)
dump_tablespaces_for_tables
(
*
argv
,
(
argv
+
1
),
(
argc
-
1
));
dump_selected_tables
(
*
argv
,
(
argv
+
1
),
(
argc
-
1
));
}
else
{
/* One or more databases, all tables */
if
(
!
opt_alltspcs
&&
!
opt_notspcs
)
dump_tablespaces_for_databases
(
argv
);
dump_databases
(
argv
);
// Check all arguments meet length condition. Currently database and table
// names are limited to NAME_LEN bytes and stack-based buffers assumes
// that escaped name will be not longer than NAME_LEN*2 + 2 bytes long.
int
argument
;
for
(
argument
=
0
;
argument
<
argc
;
argument
++
)
{
size_t
argument_length
=
strlen
(
argv
[
argument
]);
if
(
argument_length
>
NAME_LEN
)
{
die
(
EX_CONSCHECK
,
"[ERROR] Argument '%s' is too long, it cannot be "
"name for any table or database.
\n
"
,
argv
[
argument
]);
}
}
if
(
argc
>
1
&&
!
opt_databases
)
{
/* Only one database and selected table(s) */
if
(
!
opt_alltspcs
&&
!
opt_notspcs
)
dump_tablespaces_for_tables
(
*
argv
,
(
argv
+
1
),
(
argc
-
1
));
dump_selected_tables
(
*
argv
,
(
argv
+
1
),
(
argc
-
1
));
}
else
{
/* One or more databases, all tables */
if
(
!
opt_alltspcs
&&
!
opt_notspcs
)
dump_tablespaces_for_databases
(
argv
);
dump_databases
(
argv
);
}
}
/* if --dump-slave , start the slave sql thread */
...
...
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