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

Insert and Update converts text field to numeric #907

Closed
yusufiga opened this Issue Oct 30, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@yusufiga

yusufiga commented Oct 30, 2018

Hi,

When trying to use the text field for some values collection.php converts text to numeric.

@raffaelj found the points where this happens and tested some values which you can find below.

42e0    --> 42
42e4    --> 420000
 42     --> 42
  42    --> 42
.42     --> 0.42
4.2     --> 4.2
-42     --> -42
+42     --> 42
4 2     --> "4 2"
42-     --> "42-"
+-42    --> "+-42"

Here is the discussion:
https://discourse.getcockpit.com/t/api-returns-int-for-text-value/366

Thanks

@yusufiga

This comment has been minimized.

yusufiga commented Nov 24, 2018

Hi @aheinze, I really appreciate what you are doing and all your work. I know that you don't have too much time despite you are trying to improve this project. But could you please check if it's possible to fix this issue somehow? Thanks in advance for your help.

@aheinze aheinze closed this in 4a90575 Nov 24, 2018

aheinze added a commit that referenced this issue Nov 28, 2018

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