Skip to content

Commit 844e7f2

Browse files
committed
Don't force 1700 (numeric), postgres casts better - Fixes porsager#41
1 parent 93ad859 commit 844e7f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/types.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const types = module.exports.types = Object.assign({
99
serialize: x => '' + x
1010
},
1111
number: {
12-
to: 1700,
12+
to: 0,
1313
from: [21, 23, 26, 700],
1414
serialize: x => '' + x,
1515
parse: x => +x
@@ -96,7 +96,7 @@ module.exports.escape = function escape(str) {
9696
}
9797

9898
const type = {
99-
number: 1700,
99+
number: 0,
100100
bigint: 20,
101101
boolean: 16
102102
}

0 commit comments

Comments
 (0)