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
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)
...
@@ -1061,7 +1061,12 @@ static void dumpTable(uint numFields, char *table)
dynstr_append
(
&
extended_row
,
"
\'
"
);
dynstr_append
(
&
extended_row
,
"
\'
"
);
}
}
else
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
else
dynstr_append
(
&
extended_row
,
"
\'\'
"
);
dynstr_append
(
&
extended_row
,
"
\'\'
"
);
...
@@ -1081,7 +1086,11 @@ static void dumpTable(uint numFields, char *table)
...
@@ -1081,7 +1086,11 @@ static void dumpTable(uint numFields, char *table)
if
(
!
IS_NUM_FIELD
(
field
))
if
(
!
IS_NUM_FIELD
(
field
))
unescape
(
md_result_file
,
row
[
i
],
lengths
[
i
]);
unescape
(
md_result_file
,
row
[
i
],
lengths
[
i
]);
else
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
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