We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1769b57 commit 7f52b4fCopy full SHA for 7f52b4f
packages/pg/lib/utils.js
@@ -45,7 +45,7 @@ function arrayString(val) {
45
// note: you can override this function to provide your own conversion mechanism
46
// for complex types, etc...
47
var prepareValue = function (val, seen) {
48
- if (typeof val === 'object') {
+ if (typeof val === 'object' || typeof val === 'undefined') {
49
// null and undefined are both null for postgres
50
if (val == null) {
51
return null
0 commit comments