File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,9 @@ Query.prototype.requiresPreparation = function() {
65
65
if ( this . rows ) { return true ; }
66
66
//don't prepare empty text queries
67
67
if ( ! this . text ) { return false ; }
68
- //binary should be prepared to specify results should be in binary
69
- //unless there are no parameters
70
- if ( this . binary && ! this . values ) { return false ; }
71
68
//prepare if there are values
72
- return ( this . values || 0 ) . length > 0 ;
69
+ if ( ! this . values ) { return false ; }
70
+ return this . values . length > 0 ;
73
71
} ;
74
72
75
73
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ var prepareValue = function(val, seen) {
64
64
if ( typeof val === 'object' ) {
65
65
return prepareObject ( val , seen ) ;
66
66
}
67
- if ( typeof val === 'undefined' ) {
68
- throw new Error ( 'SQL queries with undefined where clause option' ) ;
69
- }
70
67
return val . toString ( ) ;
71
68
} ;
72
69
You can’t perform that action at this time.
0 commit comments