king
2024-07-02 db942b44e0755ee1ce4bc8912be2cb1ca5f89c95
src/utils/utils-custom.js
@@ -2056,6 +2056,13 @@
      duration: 5
    })
    return false
  } else if (/\sdecimal\(8,/ig.test(sql)) {
    notification.warning({
      top: 92,
      message: `不可使用 decimal(8`,
      duration: 5
    })
    return false
  } else if (type === 'customscript' && /\son\s+[a-z0-9_]+\.[a-z0-9_]+\s*=\s*[a-z0-9_]+\.[a-z0-9_]+/ig.test(sql)) {
    let list = sql.match(/\son\s+[a-z0-9_]+\.[a-z0-9_]+\s*=\s*[a-z0-9_]+\.[a-z0-9_]+/ig)
    let errors = []