Skip to content

Commit f0139c3

Browse files
committed
fix: sudden loss of float precision. (#56)
1 parent a7e2a4f commit f0139c3

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 0.2
44

5+
## 0.2.8
6+
7+
- Fix sudden loss of float precision. (#56)
8+
59
### 0.2.7
610

711
- Fix `No module named 'asyncmy.connection'`.

asyncmy/converters.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cpdef str escape_bool(int value, mapping: dict = None):
4949
cpdef str escape_int(long long value, mapping: dict = None):
5050
return str(value)
5151

52-
cpdef str escape_float(float value, mapping: dict = None):
52+
cpdef str escape_float(double value, mapping: dict = None):
5353
s = repr(value)
5454
if s in ("inf", "nan"):
5555
raise ProgrammingError("%s can not be used with MySQL" % s)

asyncmy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.2.7"
1+
__VERSION__ = "0.2.8"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ packages = [
1212
]
1313
readme = "README.md"
1414
repository = "https://github.com/long2ice/asyncmy.git"
15-
version = "0.2.7"
15+
version = "0.2.8"
1616

1717
[tool.poetry.dependencies]
1818
python = "^3.7"

0 commit comments

Comments
 (0)