We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f52b4f commit c0e8bfaCopy full SHA for c0e8bfa
packages/pg/lib/utils.js
@@ -45,11 +45,11 @@ 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' || typeof val === 'undefined') {
49
- // null and undefined are both null for postgres
50
- if (val == null) {
51
- return null
52
- }
+ // null and undefined are both null for postgres
+ if (val == null) {
+ return null
+ }
+ if (typeof val === 'object') {
53
if (val instanceof Buffer) {
54
return val
55
}
0 commit comments