File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ class Query extends Command {
212
212
if ( this . _receivedFieldsCount === this . _fieldCount ) {
213
213
const fields = this . _fields [ this . _resultIndex ] ;
214
214
this . emit ( 'fields' , fields ) ;
215
- if ( this . options . useStaticParser ) {
215
+ if ( this . options . disableEval ) {
216
216
this . _rowParser = getStaticTextParser ( fields , this . options , connection . config ) ;
217
217
} else {
218
218
this . _rowParser = new ( getTextParser ( fields , this . options , connection . config ) ) ( fields ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const validOptions = {
66
66
Promise : 1 ,
67
67
queueLimit : 1 ,
68
68
waitForConnections : 1 ,
69
- useStaticParser : 1
69
+ disableEval : 1
70
70
} ;
71
71
72
72
class ConnectionConfig {
@@ -181,7 +181,7 @@ class ConnectionConfig {
181
181
} ;
182
182
this . connectAttributes = { ...defaultConnectAttributes , ...( options . connectAttributes || { } ) } ;
183
183
this . maxPreparedStatements = options . maxPreparedStatements || 16000 ;
184
- this . useStaticParser = options . useStaticParser || false ;
184
+ this . disableEval = options . disableEval || false ;
185
185
}
186
186
187
187
static mergeFlags ( default_flags , user_flags ) {
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ export interface ConnectionOptions {
327
327
[ key : string ] : AuthPlugin ;
328
328
} ;
329
329
330
- useStaticParser ?: boolean ;
330
+ disableEval ?: boolean ;
331
331
}
332
332
333
333
declare class Connection extends QueryableBase ( ExecutableBase ( EventEmitter ) ) {
You can’t perform that action at this time.
0 commit comments