@@ -96,24 +96,24 @@ export function handleValue(x, parameters, types, options) {
96
96
97
97
const defaultHandlers = typeHandlers ( types )
98
98
99
- export function stringify ( q , string , value , parameters , types , options ) { // eslint-disable-line
99
+ export function stringify ( q , string , value , parameters , types , o ) { // eslint-disable-line
100
100
for ( let i = 1 ; i < q . strings . length ; i ++ ) {
101
101
string += (
102
- value && value [ 0 ] instanceof Query ? value . reduce ( ( acc , x ) => acc + ' ' + fragment ( x , parameters , types ) , '' ) :
103
- value instanceof Query ? fragment ( value , parameters , types ) :
102
+ value && value [ 0 ] instanceof Query ? value . reduce ( ( acc , x ) => acc + ' ' + fragment ( x , parameters , types , o ) , '' ) :
103
+ value instanceof Query ? fragment ( value , parameters , types , o ) :
104
104
value instanceof Identifier ? value . value :
105
- value instanceof Builder ? value . build ( string , parameters , types , options ) :
106
- handleValue ( value , parameters , types , options )
105
+ value instanceof Builder ? value . build ( string , parameters , types , o ) :
106
+ handleValue ( value , parameters , types , o )
107
107
) + q . strings [ i ]
108
108
value = q . args [ i ]
109
109
}
110
110
111
111
return string
112
112
}
113
113
114
- function fragment ( q , parameters , types ) {
114
+ function fragment ( q , parameters , types , options ) {
115
115
q . fragment = true
116
- return stringify ( q , q . strings [ 0 ] , q . args [ 0 ] , parameters , types )
116
+ return stringify ( q , q . strings [ 0 ] , q . args [ 0 ] , parameters , types , options )
117
117
}
118
118
119
119
function valuesBuilder ( first , parameters , types , columns , options ) {
0 commit comments