From 7f52b4f7ba72f3979731a462487c6e8a37337f5b Mon Sep 17 00:00:00 2001 From: francesco Date: Thu, 6 Feb 2025 14:58:45 +0100 Subject: [PATCH] fix: case of undefined --- packages/pg/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pg/lib/utils.js b/packages/pg/lib/utils.js index 516f852b8..ec03b8591 100644 --- a/packages/pg/lib/utils.js +++ b/packages/pg/lib/utils.js @@ -45,7 +45,7 @@ function arrayString(val) { // note: you can override this function to provide your own conversion mechanism // for complex types, etc... var prepareValue = function (val, seen) { - if (typeof val === 'object') { + if (typeof val === 'object' || typeof val === 'undefined') { // null and undefined are both null for postgres if (val == null) { return null