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
a3ea1e23
Commit
a3ea1e23
authored
Aug 06, 2004
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmysql.c:
Can't return value from void function
parent
adb35b41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libmysql/libmysql.c
libmysql/libmysql.c
+5
-3
No files found.
libmysql/libmysql.c
View file @
a3ea1e23
...
...
@@ -3277,7 +3277,8 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
char
buff
[
22
];
/* Enough for longlong */
char
*
end
=
longlong10_to_str
(
value
,
buff
,
field_is_unsigned
?
10
:
-
10
);
/* Resort to string conversion which supports all typecodes */
return
fetch_string_with_conversion
(
param
,
buff
,
end
-
buff
);
fetch_string_with_conversion
(
param
,
buff
,
end
-
buff
);
break
;
}
}
}
...
...
@@ -3349,10 +3350,11 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
}
else
{
sprintf
(
buff
,
"%.*f"
,
field
->
decimals
,
value
);
sprintf
(
buff
,
"%.*f"
,
(
int
)
field
->
decimals
,
value
);
end
=
strend
(
buff
);
}
return
fetch_string_with_conversion
(
param
,
buff
,
end
-
buff
);
fetch_string_with_conversion
(
param
,
buff
,
end
-
buff
);
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