2025-03-31 09:34:43 -05:00
|
|
|
diff --git a/node_modules/postgres/cf/src/connection.js b/node_modules/postgres/cf/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
index ee8b1e6..acf4566 100644
|
2025-03-31 09:34:43 -05:00
|
|
|
--- a/node_modules/postgres/cf/src/connection.js
|
|
|
|
+++ b/node_modules/postgres/cf/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
@@ -387,8 +387,10 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
2025-03-31 09:34:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function queryError(query, err) {
|
2025-04-10 11:43:35 -05:00
|
|
|
+ if (!query || typeof query !== 'object' || !query.reject) throw err
|
2025-03-31 09:34:43 -05:00
|
|
|
+
|
|
|
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
2025-04-10 11:43:35 -05:00
|
|
|
- stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
|
|
|
+ stack: { value: err.stack + (query.origin || '').replace(/.*\n/, '\n'), enumerable: options.debug },
|
2025-03-31 09:34:43 -05:00
|
|
|
query: { value: query.string, enumerable: options.debug },
|
2025-04-10 11:43:35 -05:00
|
|
|
parameters: { value: query.parameters, enumerable: options.debug },
|
|
|
|
args: { value: query.args, enumerable: options.debug },
|
2025-03-31 09:34:43 -05:00
|
|
|
diff --git a/node_modules/postgres/cjs/src/connection.js b/node_modules/postgres/cjs/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
index f7f58d1..b7f2d65 100644
|
2025-03-31 09:34:43 -05:00
|
|
|
--- a/node_modules/postgres/cjs/src/connection.js
|
|
|
|
+++ b/node_modules/postgres/cjs/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
@@ -385,8 +385,10 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
2025-03-31 09:34:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function queryError(query, err) {
|
2025-04-10 11:43:35 -05:00
|
|
|
+ if (!query || typeof query !== 'object' || !query.reject) throw err
|
2025-03-31 09:34:43 -05:00
|
|
|
+
|
|
|
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
2025-04-10 11:43:35 -05:00
|
|
|
- stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
|
|
|
+ stack: { value: err.stack + (query.origin || '').replace(/.*\n/, '\n'), enumerable: options.debug },
|
2025-03-31 09:34:43 -05:00
|
|
|
query: { value: query.string, enumerable: options.debug },
|
2025-04-10 11:43:35 -05:00
|
|
|
parameters: { value: query.parameters, enumerable: options.debug },
|
|
|
|
args: { value: query.args, enumerable: options.debug },
|
2025-03-31 09:34:43 -05:00
|
|
|
diff --git a/node_modules/postgres/src/connection.js b/node_modules/postgres/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
index 97cc97e..26f508e 100644
|
2025-03-31 09:34:43 -05:00
|
|
|
--- a/node_modules/postgres/src/connection.js
|
|
|
|
+++ b/node_modules/postgres/src/connection.js
|
2025-04-10 11:43:35 -05:00
|
|
|
@@ -385,8 +385,10 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
2025-03-31 09:34:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function queryError(query, err) {
|
2025-04-10 11:43:35 -05:00
|
|
|
+ if (!query || typeof query !== 'object' || !query.reject) throw err
|
2025-03-31 09:34:43 -05:00
|
|
|
+
|
|
|
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
2025-04-10 11:43:35 -05:00
|
|
|
- stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
|
|
|
+ stack: { value: err.stack + (query.origin || '').replace(/.*\n/, '\n'), enumerable: options.debug },
|
2025-03-31 09:34:43 -05:00
|
|
|
query: { value: query.string, enumerable: options.debug },
|
2025-04-10 11:43:35 -05:00
|
|
|
parameters: { value: query.parameters, enumerable: options.debug },
|
|
|
|
args: { value: query.args, enumerable: options.debug },
|