mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
added oid as integer type
This commit is contained in:
parent
503cd5c164
commit
a05ad762d2
@ -19,6 +19,7 @@ Query.dataTypes = {
|
||||
20: intParser,
|
||||
21: intParser,
|
||||
23: intParser,
|
||||
26: intParser,
|
||||
1700: floatParser,
|
||||
700: floatParser,
|
||||
701: floatParser
|
||||
|
||||
@ -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)
|
||||
// });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user