Skip to content

Commit

Permalink
Implemented #200
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Sep 7, 2016
1 parent 477cb8b commit 0e5aa95
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
####2.2.3

###Bug Fixes

###New Features

* [#200](https://github.com/orientechnologies/orientjs/issues/200) Added Extra paramenters `input` to the endQuery

####2.2.2

###BugFixes
###Bug Fixes

* [#187](https://github.com/orientechnologies/orientjs/issues/187) Fixed native deserializer on Decimal Type
* [#191](https://github.com/orientechnologies/orientjs/issues/191) Fixed distributed support in 2.2.x

###New Features

* [#190](https://github.com/orientechnologies/orientjs/pull/190) Raw Expressions [docs](https://github.com/orientechnologies/orientdb-docs/blob/master/OrientJS-Query-Insert.md#raw-expressions)
* [#190](https://github.com/orientechnologies/orientjs/pull/190) Raw Expressions [docs](https://github.com/orientechnologies/orientdb-docs/blob/master/OrientJS-Query-Insert.md#raw-expressions)
3 changes: 2 additions & 1 deletion lib/db/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ Db.prototype.exec = function (query, options) {
result: res,
perf: {
query: e - s
}
},
input : data
});
});
}
Expand Down
8 changes: 8 additions & 0 deletions test/db/odatabase-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ describe("Database API", function () {
emitedObject.perf.query.should.be.above(0);
(isNaN(emitedObject.err)).should.be.true;
emitedObject.result.should.be.ok;

emitedObject.input.should.have.property("query");
emitedObject.input.should.have.property("mode");
emitedObject.input.should.have.property("fetchPlan");
emitedObject.input.should.have.property("limit");
emitedObject.input.should.have.property("params");

emitedObject.input.query.should.equal("SELECT name, status FROM OUser LIMIT 1");
});
});

Expand Down

0 comments on commit 0e5aa95

Please sign in to comment.