Skip to content

Commit

Permalink
Don't force 1700 (numeric), postgres casts better - Fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Mar 9, 2020
1 parent 93ad859 commit 844e7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types.js
Expand Up @@ -9,7 +9,7 @@ const types = module.exports.types = Object.assign({
serialize: x => '' + x
},
number: {
to: 1700,
to: 0,
from: [21, 23, 26, 700],
serialize: x => '' + x,
parse: x => +x
Expand Down Expand Up @@ -96,7 +96,7 @@ module.exports.escape = function escape(str) {
}

const type = {
number: 1700,
number: 0,
bigint: 20,
boolean: 16
}
Expand Down

0 comments on commit 844e7f2

Please sign in to comment.