Skip to content

Commit 9b78fe1

Browse files
committed
rename to disableEval
1 parent da73b7a commit 9b78fe1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/commands/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class Query extends Command {
212212
if (this._receivedFieldsCount === this._fieldCount) {
213213
const fields = this._fields[this._resultIndex];
214214
this.emit('fields', fields);
215-
if (this.options.useStaticParser) {
215+
if (this.options.disableEval) {
216216
this._rowParser = getStaticTextParser(fields, this.options, connection.config);
217217
} else {
218218
this._rowParser = new (getTextParser(fields, this.options, connection.config))(fields);

lib/connection_config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const validOptions = {
6666
Promise: 1,
6767
queueLimit: 1,
6868
waitForConnections: 1,
69-
useStaticParser: 1
69+
disableEval: 1
7070
};
7171

7272
class ConnectionConfig {
@@ -181,7 +181,7 @@ class ConnectionConfig {
181181
};
182182
this.connectAttributes = { ...defaultConnectAttributes, ...(options.connectAttributes || {})};
183183
this.maxPreparedStatements = options.maxPreparedStatements || 16000;
184-
this.useStaticParser = options.useStaticParser || false;
184+
this.disableEval = options.disableEval || false;
185185
}
186186

187187
static mergeFlags(default_flags, user_flags) {

typings/mysql/lib/Connection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export interface ConnectionOptions {
327327
[key: string]: AuthPlugin;
328328
};
329329

330-
useStaticParser?: boolean;
330+
disableEval?: boolean;
331331
}
332332

333333
declare class Connection extends QueryableBase(ExecutableBase(EventEmitter)) {

0 commit comments

Comments
 (0)