diff --git a/integration-tests/__tests__/deploy-database.spec.js b/integration-tests/__tests__/deploy-database.spec.js index 4ae3cc171..b1c9faf21 100644 --- a/integration-tests/__tests__/deploy-database.spec.js +++ b/integration-tests/__tests__/deploy-database.spec.js @@ -558,7 +558,7 @@ describe('Deploy database', () => { const V1_VARIANT2 = { name: 'v1.view.sql', - text: 'create view ~v1 as select ~id + ~id from ~t1', + text: 'create view ~v1 as select ~id + ~id ~idsum from ~t1', }; const V1_DELETED = { diff --git a/integration-tests/__tests__/object-analyse.spec.js b/integration-tests/__tests__/object-analyse.spec.js index f94223b69..6f31f62e3 100644 --- a/integration-tests/__tests__/object-analyse.spec.js +++ b/integration-tests/__tests__/object-analyse.spec.js @@ -1,6 +1,7 @@ const { testWrapper } = require('../tools'); const engines = require('../engines'); const _ = require('lodash'); +const { formatQueryWithoutParams } = require('dbgate-tools'); const initSql = ['CREATE TABLE t1 (id int primary key)', 'CREATE TABLE t2 (id int primary key)']; @@ -36,7 +37,7 @@ describe('Object analyse', () => { testWrapper(async (conn, driver, type, object, engine) => { for (const sql of initSql) await driver.query(conn, sql, { discardResult: true }); - await driver.query(conn, object.create1, { discardResult: true }); + await driver.query(conn, formatQueryWithoutParams(driver, object.create1), { discardResult: true }); const structure = await driver.analyseFull(conn); expect(structure[type].length).toEqual(1); diff --git a/integration-tests/engines.js b/integration-tests/engines.js index 74e2f7591..618f4678f 100644 --- a/integration-tests/engines.js +++ b/integration-tests/engines.js @@ -418,6 +418,7 @@ end;$$`, dbSnapshotBySeconds: true, setNullDefaultInsteadOfDrop: true, skipIncrementalAnalysis: true, + objects: [views], }, ];