Skip to content

Commit 07a12c0

Browse files
committed
Merge pull request brianc#500 from lalitkapoor/patch-1
comment explaining how to get oid for a type
2 parents 8abf59a + 58b4d9c commit 07a12c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/types/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ var noParse = function(val) {
1313

1414
//returns a function used to convert a specific type (specified by
1515
//oid) into a result javascript type
16+
//note: the oid can be obtained via the following sql query:
17+
//SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE';
1618
var getTypeParser = function(oid, format) {
1719
if (!typeParsers[format]) {
1820
return noParse;

0 commit comments

Comments
 (0)