From 58b4d9cf9c81b3be101a1edc95ddde963fb58751 Mon Sep 17 00:00:00 2001 From: Lalit Kapoor Date: Tue, 7 Jan 2014 11:48:55 -0600 Subject: [PATCH] comment explaining how to get oid --- lib/types/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/types/index.js b/lib/types/index.js index b731433c..0750856c 100644 --- a/lib/types/index.js +++ b/lib/types/index.js @@ -13,6 +13,8 @@ var noParse = function(val) { //returns a function used to convert a specific type (specified by //oid) into a result javascript type +//note: the oid can be obtained via the following sql query: +//SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE'; var getTypeParser = function(oid, format) { if (!typeParsers[format]) { return noParse;