diff --git a/lib/datasource.js b/lib/datasource.js index 52552468..979ecb9f 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -132,6 +132,7 @@ DataSource.prototype._setupConnector = function () { // Set up the dataSource if the connector doesn't do so this.connector.dataSource = this; } + var dataSource = this; this.connector.log = function (query, start) { dataSource.log(query, start); };