diff --git a/src/main/libs/clients/MySQLClient.js b/src/main/libs/clients/MySQLClient.js index f72f122c..f8ac9134 100644 --- a/src/main/libs/clients/MySQLClient.js +++ b/src/main/libs/clients/MySQLClient.js @@ -363,15 +363,14 @@ export class MySQLClient extends AntaresCore { const details = fieldArr.slice(2).join(' '); let defaultValue = null; - if (details.includes('DEFAULT')) { + if (details.includes('DEFAULT')) defaultValue = details.match(/(?<=DEFAULT ).*?$/gs)[0].split(' COMMENT')[0]; - const defaultValueArr = defaultValue.split(''); - if (defaultValueArr[0] === '\'') { - defaultValueArr.shift(); - defaultValueArr.pop(); - defaultValue = defaultValueArr.join(''); - } - } + // const defaultValueArr = defaultValue.split(''); + // if (defaultValueArr[0] === '\'') { + // defaultValueArr.shift(); + // defaultValueArr.pop(); + // defaultValue = defaultValueArr.join(''); + // } const typeAndLength = nameAndType[1].replace(')', '').split('('); diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 37ae640c..f6bb9dd4 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -97,7 +97,7 @@ @@ -129,7 +129,7 @@ - - + -->