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

Numeric is converted to String #58

Closed
bitmage opened this issue Feb 5, 2015 · 3 comments
Closed

Numeric is converted to String #58

bitmage opened this issue Feb 5, 2015 · 3 comments
Assignees
Labels

Comments

@bitmage
Copy link

bitmage commented Feb 5, 2015

With this in my model.json:

{
  "amount": {
    "type": "number",
    "human": "Amount",
    "postgresql": {
      "dataType": "numeric",
      "dataPrecision": 16,
      "dataScale": 4
    }
  }
}

When I store the value 50000.5413 I get back '50000.5413'.

@kelchm
Copy link

kelchm commented May 8, 2015

I'm also seeing this issue -- any update?

@mirow
Copy link

mirow commented May 25, 2015

The problem (and solution) is here:
brianc/node-pg-types#28

@ssh24
Copy link
Contributor

ssh24 commented Jun 23, 2017

Added docs to allow the users know of this behaviour. Closing this issue.

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

No branches or pull requests

5 participants