mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 02:56:00 +00:00
oracle table-create test passes
This commit is contained in:
@@ -2,7 +2,7 @@ const _ = require('lodash');
|
|||||||
const fp = require('lodash/fp');
|
const fp = require('lodash/fp');
|
||||||
const engines = require('../engines');
|
const engines = require('../engines');
|
||||||
const { testWrapper } = require('../tools');
|
const { testWrapper } = require('../tools');
|
||||||
const { extendDatabaseInfo } = require('dbgate-tools');
|
const { extendDatabaseInfo, runCommandOnDriver } = require('dbgate-tools');
|
||||||
|
|
||||||
function createExpector(value) {
|
function createExpector(value) {
|
||||||
return _.cloneDeepWith(value, x => {
|
return _.cloneDeepWith(value, x => {
|
||||||
@@ -25,7 +25,7 @@ function checkTableStructure2(t1, t2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function testTableCreate(conn, driver, table) {
|
async function testTableCreate(conn, driver, table) {
|
||||||
await driver.query(conn, `create table t0 (id int not null primary key)`);
|
await runCommandOnDriver(conn, driver, dmp => dmp.put('create table ~t0 (~id int not null primary key)'));
|
||||||
|
|
||||||
const dmp = driver.createDumper();
|
const dmp = driver.createDumper();
|
||||||
const table1 = {
|
const table1 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user