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
38a65b4d
Commit
38a65b4d
authored
Aug 28, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the bug #1125 mysqldump -X creates invalid XML
parent
d1d92817
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqldump.c
client/mysqldump.c
+4
-4
No files found.
client/mysqldump.c
View file @
38a65b4d
...
@@ -1137,7 +1137,7 @@ static void dumpTable(uint numFields, char *table)
...
@@ -1137,7 +1137,7 @@ static void dumpTable(uint numFields, char *table)
safe_exit
(
EX_CONSCHECK
);
safe_exit
(
EX_CONSCHECK
);
return
;
return
;
}
}
if
(
extended_insert
)
if
(
extended_insert
&&
!
opt_xml
)
{
{
ulong
length
=
lengths
[
i
];
ulong
length
=
lengths
[
i
];
if
(
i
==
0
)
if
(
i
==
0
)
...
@@ -1222,7 +1222,7 @@ static void dumpTable(uint numFields, char *table)
...
@@ -1222,7 +1222,7 @@ static void dumpTable(uint numFields, char *table)
if
(
opt_xml
)
if
(
opt_xml
)
fprintf
(
md_result_file
,
"
\t
</row>
\n
"
);
fprintf
(
md_result_file
,
"
\t
</row>
\n
"
);
if
(
extended_insert
)
if
(
extended_insert
&&
!
opt_xml
)
{
{
ulong
row_length
;
ulong
row_length
;
dynstr_append
(
&
extended_row
,
")"
);
dynstr_append
(
&
extended_row
,
")"
);
...
@@ -1404,7 +1404,7 @@ static int init_dumping(char *database)
...
@@ -1404,7 +1404,7 @@ static int init_dumping(char *database)
(
opt_quoted
?
"`"
:
""
));
(
opt_quoted
?
"`"
:
""
));
}
}
}
}
if
(
extended_insert
)
if
(
extended_insert
&&
!
opt_xml
)
if
(
init_dynamic_string
(
&
extended_row
,
""
,
1024
,
1024
))
if
(
init_dynamic_string
(
&
extended_row
,
""
,
1024
,
1024
))
exit
(
EX_EOM
);
exit
(
EX_EOM
);
return
0
;
return
0
;
...
@@ -1676,7 +1676,7 @@ int main(int argc, char **argv)
...
@@ -1676,7 +1676,7 @@ int main(int argc, char **argv)
if
(
md_result_file
!=
stdout
)
if
(
md_result_file
!=
stdout
)
my_fclose
(
md_result_file
,
MYF
(
0
));
my_fclose
(
md_result_file
,
MYF
(
0
));
my_free
(
opt_password
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_password
,
MYF
(
MY_ALLOW_ZERO_PTR
));
if
(
extended_insert
)
if
(
extended_insert
&
!
opt_xml
)
dynstr_free
(
&
extended_row
);
dynstr_free
(
&
extended_row
);
my_end
(
0
);
my_end
(
0
);
return
(
first_error
);
return
(
first_error
);
...
...
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