Skip to content

Commit

Permalink
fix: case of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cesco69 authored Feb 6, 2025
1 parent 1769b57 commit 7f52b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f52b4f

Please # to comment.