Improve update of jsonb fields. Add PG 9.5 to travis. (#2984)

* Improve update of jsonb fields. Add PG 9.5 to travis.

* Replace manual escaping with pg-promise's built in
This commit is contained in:
Kulshekhar Kabra
2016-11-02 06:25:53 +05:30
committed by Florent Vilmart
parent 8f0ae7081d
commit 583887c43c
3 changed files with 18 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ describe('rest create', () => {
});
});
it_exclude_dbs(['postgres'])('handles object and subdocument', done => {
it('handles object and subdocument', done => {
let obj = { subdoc: {foo: 'bar', wu: 'tan'} };
rest.create(config, auth.nobody(config), 'MyClass', obj)
.then(() => database.adapter.find('MyClass', { fields: {} }, {}, {}))