Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double fetch()ed as string #289

Honzy opened this issue Jan 20, 2022 · 0 comments

double fetch()ed as string #289

Honzy opened this issue Jan 20, 2022 · 0 comments


Copy link

Honzy commented Jan 20, 2022

Version: 3.1.4

Bug Description

Double in database is returned as string.

Steps To Reproduce

Double with a lot of zeros is returned as string (f.e. 0.000074601974431321)

(float)0.000074601974431321 -> 7.4601974431321e-5
$row[$key] = (string) $float === $value ? $float : $value; // FALSE, return string -> Helpers->normalizeRow() row 210

Expected Behavior

Return float

Possible Solution

$row[$key] = preg_match("/^-{0,1}\d+\.\d+$/", $value) === 1 ? $float : $value;


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants