mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 00:16:00 +00:00
feat: handle implicit null declation in alter-table
This commit is contained in:
@@ -60,7 +60,9 @@ async function testTableDiff(engine, conn, driver, mangle) {
|
|||||||
if (!engine.skipReferences) {
|
if (!engine.skipReferences) {
|
||||||
const query = formatQueryWithoutParams(
|
const query = formatQueryWithoutParams(
|
||||||
driver,
|
driver,
|
||||||
`create table ~t2 (~id int not null primary key, ~fkval int null references ~t1(~col_ref))`
|
`create table ~t2 (~id int not null primary key, ~fkval int ${
|
||||||
|
driver.dialect.implicitNullDeclaration ? '' : 'null'
|
||||||
|
} references ~t1(~col_ref))`
|
||||||
);
|
);
|
||||||
|
|
||||||
await driver.query(conn, transformSqlForEngine(engine, query));
|
await driver.query(conn, transformSqlForEngine(engine, query));
|
||||||
|
|||||||
Reference in New Issue
Block a user