added oid as integer type

This commit is contained in:
brianc 2010-10-18 22:42:48 -05:00
parent 503cd5c164
commit a05ad762d2
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Query.dataTypes = {
20: intParser,
21: intParser,
23: intParser,
26: intParser,
1700: floatParser,
700: floatParser,
701: floatParser

View File

@ -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)
// });