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
5c994ad6
Commit
5c994ad6
authored
Sep 03, 2001
by
jani@hynda.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem with dumping string values in float and double
fields (inf,nan,...); should be dumped as "NULL".
parent
3a3d1e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
client/mysqldump.c
client/mysqldump.c
+11
-2
No files found.
client/mysqldump.c
View file @
5c994ad6
...
...
@@ -1061,7 +1061,12 @@ static void dumpTable(uint numFields, char *table)
dynstr_append
(
&
extended_row
,
"
\'
"
);
}
else
dynstr_append
(
&
extended_row
,
row
[
i
]);
{
/* change any strings ("inf","nan",..) into NULL */
char
*
ptr
=
row
[
i
];
dynstr_append
(
&
extended_row
,
(
!
isalpha
(
*
ptr
))
?
ptr
:
"NULL"
);
}
}
else
dynstr_append
(
&
extended_row
,
"
\'\'
"
);
...
...
@@ -1081,7 +1086,11 @@ static void dumpTable(uint numFields, char *table)
if
(
!
IS_NUM_FIELD
(
field
))
unescape
(
md_result_file
,
row
[
i
],
lengths
[
i
]);
else
fputs
(
row
[
i
],
md_result_file
);
{
/* change any strings ("inf","nan",..) into NULL */
char
*
ptr
=
row
[
i
];
fputs
((
!
isalpha
(
*
ptr
))
?
ptr
:
"NULL"
,
md_result_file
);
}
}
else
{
...
...
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