Browse Source

fix: MariaDB default value

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4900/head
mertmit 2 years ago
parent
commit
581f6fd705
  1. 8
      packages/nocodb/src/lib/db/sql-client/lib/mysql/MysqlClient.ts

8
packages/nocodb/src/lib/db/sql-client/lib/mysql/MysqlClient.ts

@ -671,6 +671,14 @@ class MysqlClient extends KnexClient {
column.cdf = response[0][i].cdf; column.cdf = response[0][i].cdf;
} }
if (this._version?.version) {
if (this._version.version.includes('Maria')) {
if (column.cdf === 'NULL') {
column.cdf = null;
}
}
}
column.cc = response[0][i].cc; column.cc = response[0][i].cc;
column.csn = response[0][i].csn; column.csn = response[0][i].csn;

Loading…
Cancel
Save