Skip to content

Commit bc67a8a

Browse files
author
Brian Carlson
committed
Make pg-cursor compatible with older versions of pg
1 parent 0c1629b commit bc67a8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/pg-cursor/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
2-
const pg = require('pg')
3-
const { Result, utils } = pg
4-
const prepare = utils.prepareValue
2+
// note: can remove these deep requires when we bump min version of pg to 9.x
3+
const Result = require('pg/lib/result.js')
4+
const prepare = require('pg/lib/utils.js').prepareValue
55
const EventEmitter = require('events').EventEmitter
66
const util = require('util')
77

0 commit comments

Comments
 (0)