summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-02-22 15:08:12 +0200
committerunknown <monty@mysql.com>2005-02-22 15:08:12 +0200
commit2ae6eb094bb02a3e41ab611c9e9f27982a2ef9c3 (patch)
tree5b1313cce71222591b726083b1d4cf01b965d96e /libmysql/libmysql.c
parent1c172c3bc4cfefb4ad91a6a39311cc4ca80ca4ed (diff)
downloadmariadb-git-2ae6eb094bb02a3e41ab611c9e9f27982a2ef9c3.tar.gz
Fix errors in my last changeset
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 9c49c7eb15b..16dda115ee9 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -3390,14 +3390,17 @@ static void fetch_string_with_conversion(MYSQL_BIND *param, char *value,
}
case MYSQL_TYPE_FLOAT:
{
+ char *end_not_used;
float data = (float) my_strntod(&my_charset_latin1, value, length,
- NULL, &err);
+ &end_not_used, &err);
floatstore(buffer, data);
break;
}
case MYSQL_TYPE_DOUBLE:
{
- double data= my_strntod(&my_charset_latin1, value, length, NULL, &err);
+ char *end_not_used;
+ double data= my_strntod(&my_charset_latin1, value, length, &end_not_used,
+ &err);
doublestore(buffer, data);
break;
}