Skip to content

Commit

Permalink
tests(pg): only run update from against postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
wms committed Nov 18, 2022
1 parent 0d7b256 commit e9ee84a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration2/query/update/updates.spec.js
Expand Up @@ -3,6 +3,7 @@
const { expect } = require('chai');

const { TEST_TIMESTAMP } = require('../../../util/constants');
const { isPostgreSQL } = require('../../../util/db-helpers');
const {
getAllDbs,
getKnexForDb,
Expand Down Expand Up @@ -382,6 +383,10 @@ describe('Updates', function () {
});

it('should allow explicit from', async function () {
if (!isPostgreSQL(knex)) {
return this.skip();
}

await knex('accounts')
.update({ last_name: 'olivier' })
.with('withClause', function () {
Expand Down

0 comments on commit e9ee84a

Please sign in to comment.