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
9727b6dc
Commit
9727b6dc
authored
Oct 17, 2007
by
tsmith@ramayana.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51
parents
3a2e673c
3d203e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
libmysql/libmysql.c
libmysql/libmysql.c
+11
-7
No files found.
libmysql/libmysql.c
View file @
9727b6dc
...
...
@@ -3873,15 +3873,19 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
sprintf
(
buff
,
"%.*f"
,
(
int
)
field
->
decimals
,
value
);
end
=
strend
(
buff
);
}
uint
length
=
(
uint
)
(
end
-
buff
);
if
(
field
->
flags
&
ZEROFILL_FLAG
&&
length
<
field
->
length
&&
field
->
length
<
MAX_DOUBLE_STRING_REP_LENGTH
-
1
)
{
bmove_upp
((
char
*
)
buff
+
field
->
length
,
buff
+
length
,
length
);
bfill
((
char
*
)
buff
,
field
->
length
-
length
,
'0'
);
length
=
field
->
length
;
size_t
length
=
end
-
buff
;
if
(
field
->
flags
&
ZEROFILL_FLAG
&&
length
<
field
->
length
&&
field
->
length
<
MAX_DOUBLE_STRING_REP_LENGTH
-
1
)
{
bmove_upp
((
char
*
)
buff
+
field
->
length
,
buff
+
length
,
length
);
bfill
((
char
*
)
buff
,
field
->
length
-
length
,
'0'
);
length
=
field
->
length
;
}
fetch_string_with_conversion
(
param
,
buff
,
length
);
}
fetch_string_with_conversion
(
param
,
buff
,
length
);
break
;
}
}
...
...
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