Skip to content

Commit 7f52b4f

Browse files
authored
fix: case of undefined
1 parent 1769b57 commit 7f52b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg/lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function arrayString(val) {
4545
// note: you can override this function to provide your own conversion mechanism
4646
// for complex types, etc...
4747
var prepareValue = function (val, seen) {
48-
if (typeof val === 'object') {
48+
if (typeof val === 'object' || typeof val === 'undefined') {
4949
// null and undefined are both null for postgres
5050
if (val == null) {
5151
return null

0 commit comments

Comments
 (0)