mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
parse floats
This commit is contained in:
parent
bf87006bc3
commit
a69d9fecaa
@ -11,10 +11,17 @@ var intParser = {
|
||||
fromDbValue: parseInt
|
||||
};
|
||||
|
||||
var floatParser = {
|
||||
fromDbValue: parseFloat
|
||||
};
|
||||
|
||||
Query.dataTypes = {
|
||||
20: intParser,
|
||||
21: intParser,
|
||||
23: intParser
|
||||
23: intParser,
|
||||
1700: floatParser,
|
||||
700: floatParser,
|
||||
701: floatParser
|
||||
};
|
||||
|
||||
var p = Query.prototype;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user