Skip to content

Commit

Permalink
perf: improved precision of MariaDB or MySQL auto detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 2, 2022
1 parent 31b7999 commit 26aad51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/stores/workspaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ export const useWorkspacesStore = defineStore('workspaces', {

// Check if Maria or MySQL
const isMySQL = version.name.includes('MySQL');
const isMaria = version.name.includes('Maria');

if (isMySQL && connection.client !== 'mysql') {
const connProxy = Object.assign({}, connection);
connProxy.client = 'mysql';
connectionsStore.editConnection(connProxy);
}
else if (!isMySQL && connection.client === 'mysql') {
else if (isMaria && connection.client === 'mysql') {
const connProxy = Object.assign({}, connection);
connProxy.client = 'maria';
connectionsStore.editConnection(connProxy);
Expand Down

0 comments on commit 26aad51

Please sign in to comment.