diff --git a/lib/query.js b/lib/query.js index 2a1f41b5..f3bb089a 100644 --- a/lib/query.js +++ b/lib/query.js @@ -19,6 +19,7 @@ Query.dataTypes = { 20: intParser, 21: intParser, 23: intParser, + 26: intParser, 1700: floatParser, 700: floatParser, 701: floatParser diff --git a/test/unit/typed-results-tests.js b/test/unit/typed-results-tests.js index a626e577..36e9873a 100644 --- a/test/unit/typed-results-tests.js +++ b/test/unit/typed-results-tests.js @@ -56,8 +56,14 @@ test('parses numeric types', function() { testForType('numeric (decimal)', 1700, '123.456', 123.456); testForType('real (float4)', 700, '123.457', 123.457); testForType('doubl precision (float8)', 701, '123.4567', 123.4567); + testForType('oid', 26, '1038', 1038); }); test('parses binary data types', function() { //TODO }); + +// test('parses date/time', function() { +// testForType('time', 1083); +// testForType('timetz (with timezone)', 1266) +// });