Skip to content

Commit

Permalink
bump version number (1.0.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Mar 1, 2021
1 parent f633103 commit f5da77b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mariadb/mariadb_codecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ field_fetch_fromtext(MrdbCursor *self, char *data, unsigned int column)
case MYSQL_TYPE_FLOAT:
case MYSQL_TYPE_DOUBLE:
{
double d= atof(data);
self->values[column]= PyFloat_FromDouble(d);
PyObject *str= PyUnicode_FromString(data);
self->values[column]= PyFloat_FromString(str);
Py_DECREF(str);
break;
}
case MYSQL_TYPE_TIME:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

PY_MARIADB_MAJOR_VERSION=1
PY_MARIADB_MINOR_VERSION=0
PY_MARIADB_PATCH_VERSION=6
PY_MARIADB_PATCH_VERSION=7
# PY_MARIADB_PRE_RELEASE_SEGMENT=""

PY_MARIADB_VERSION= "%s.%s.%s" % (PY_MARIADB_MAJOR_VERSION, PY_MARIADB_MINOR_VERSION, PY_MARIADB_PATCH_VERSION)
Expand Down

0 comments on commit f5da77b

Please sign in to comment.