mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-22 06:27:50 +01:00
perf: improved precision of MariaDB or MySQL auto detection
This commit is contained in:
parent
31b7999bba
commit
26aad519df
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user