File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 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() {
6565 if ( this . rows ) { return true ; }
6666 //don't prepare empty text queries
6767 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 ; }
7168 //prepare if there are values
72- return ( this . values || 0 ) . length > 0 ;
69+ if ( ! this . values ) { return false ; }
70+ return this . values . length > 0 ;
7371} ;
7472
7573
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ var prepareValue = function(val, seen) {
6464 if ( typeof val === 'object' ) {
6565 return prepareObject ( val , seen ) ;
6666 }
67- if ( typeof val === 'undefined' ) {
68- throw new Error ( 'SQL queries with undefined where clause option' ) ;
69- }
7067 return val . toString ( ) ;
7168} ;
7269
You can’t perform that action at this time.
0 commit comments