Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
7d32e333
Commit
7d32e333
authored
20 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Small fixes to patch for #5371
libmysql/libmysql.c: Code trimmed
parent
5bb0b411
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libmysql/libmysql.c
libmysql/libmysql.c
+3
-2
No files found.
libmysql/libmysql.c
View file @
7d32e333
...
...
@@ -3487,10 +3487,11 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
char
*
end
;
/* TODO: move this to a header shared between client and server. */
#define NOT_FIXED_DEC 31
if
(
field
->
decimals
>=
31
)
if
(
field
->
decimals
>=
NOT_FIXED_DEC
)
#undef NOT_FIXED_DEC
{
sprintf
(
buff
,
"%-*.*g"
,
(
int
)
min
(
330
,
param
->
buffer_length
),
width
,
value
);
sprintf
(
buff
,
"%-*.*g"
,
(
int
)
min
(
sizeof
(
buff
)
-
1
,
param
->
buffer_length
),
width
,
value
);
end
=
strcend
(
buff
,
' '
);
*
end
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
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