From bc67a8a9934471d6737d75c702ffcb7fc1451446 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Thu, 24 Apr 2025 14:17:55 -0500 Subject: [PATCH] Make pg-cursor compatible with older versions of pg --- packages/pg-cursor/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pg-cursor/index.js b/packages/pg-cursor/index.js index 8ee481305..f1553cc9c 100644 --- a/packages/pg-cursor/index.js +++ b/packages/pg-cursor/index.js @@ -1,7 +1,7 @@ 'use strict' -const pg = require('pg') -const { Result, utils } = pg -const prepare = utils.prepareValue +// note: can remove these deep requires when we bump min version of pg to 9.x +const Result = require('pg/lib/result.js') +const prepare = require('pg/lib/utils.js').prepareValue const EventEmitter = require('events').EventEmitter const util = require('util')