From 76d92cd106b0409e8752c43d7d587d09dd3e1e32 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Wed, 24 Feb 2021 12:46:31 +0100 Subject: [PATCH] fix: issue managing function/routine parameters --- README.md | 2 +- package.json | 10 +++---- src/common/db-properties/mysql.js | 1 + src/main/libs/clients/MySQLClient.js | 2 +- src/renderer/components/Workspace.vue | 4 +-- .../WorkspacePropsFunctionParamsModal.vue | 28 +++++++++--------- .../WorkspacePropsRoutineParamsModal.vue | 28 +++++++++--------- .../components/WorkspacePropsTabFunction.vue | 7 +++++ .../components/WorkspacePropsTabRoutine.vue | 29 +++++++++++++++++-- src/renderer/components/WorkspaceQueryTab.vue | 9 ++++-- .../store/modules/workspaces.store.js | 12 ++++---- 11 files changed, 88 insertions(+), 44 deletions(-) create mode 100644 src/common/db-properties/mysql.js diff --git a/README.md b/README.md index 33ec2a35..d852d684 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,8 @@ Depending on your distribution, you will need to run the following command: - [x] MySQL/MariaDB - [ ] PostgreSQL -- [ ] MSSQL - [ ] SQLite +- [ ] MSSQL - [ ] OracleDB - [ ] More... diff --git a/package.json b/package.json index c56b69a5..de2fa201 100644 --- a/package.json +++ b/package.json @@ -72,23 +72,23 @@ "devDependencies": { "babel-eslint": "^10.1.0", "cross-env": "^7.0.2", - "electron": "^11.2.1", + "electron": "^11.3.0", "electron-builder": "^22.9.1", "electron-devtools-installer": "^3.1.1", "electron-webpack": "^2.8.2", "electron-webpack-vue": "^2.4.0", - "eslint": "^7.18.0", + "eslint": "^7.20.0", "eslint-config-standard": "^16.0.2", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-vue": "^7.5.0", + "eslint-plugin-promise": "^4.3.1", + "eslint-plugin-vue": "^7.6.0", "node-sass": "^5.0.0", "sass-loader": "^10.1.1", "standard-version": "^9.1.0", "stylelint": "^13.9.0", "stylelint-config-standard": "^20.0.0", - "stylelint-scss": "^3.18.0", + "stylelint-scss": "^3.19.0", "vue": "^2.6.12", "vue-template-compiler": "^2.6.12", "webpack": "^4.46.0" diff --git a/src/common/db-properties/mysql.js b/src/common/db-properties/mysql.js new file mode 100644 index 00000000..e0a30c5d --- /dev/null +++ b/src/common/db-properties/mysql.js @@ -0,0 +1 @@ +module.exports = []; diff --git a/src/main/libs/clients/MySQLClient.js b/src/main/libs/clients/MySQLClient.js index 38efb3a8..1fd25a51 100644 --- a/src/main/libs/clients/MySQLClient.js +++ b/src/main/libs/clients/MySQLClient.js @@ -561,7 +561,7 @@ export class MySQLClient extends AntaresCore { return { name: param[1] ? param[1].replaceAll('`', '') : '', - type: type[0], + type: type[0].replaceAll('\n', ''), length: +type[1], context: param[0] ? param[0].replace('\n', '') : '' }; diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 6556310d..5d5199ff 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -109,7 +109,7 @@ @@ -221,7 +221,7 @@ export default { removeTab: 'workspaces/removeTab' }), addTab () { - this.newTab(this.connection.uid); + this.newTab({ uid: this.connection.uid }); if (!this.hasWheelEvent) { this.$refs.tabWrap.addEventListener('wheel', e => { diff --git a/src/renderer/components/WorkspacePropsFunctionParamsModal.vue b/src/renderer/components/WorkspacePropsFunctionParamsModal.vue index fccd3608..00639395 100644 --- a/src/renderer/components/WorkspacePropsFunctionParamsModal.vue +++ b/src/renderer/components/WorkspacePropsFunctionParamsModal.vue @@ -2,7 +2,7 @@