mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
perf: improved precision of MariaDB or MySQL auto detection
This commit is contained in:
@@ -117,13 +117,14 @@ export const useWorkspacesStore = defineStore('workspaces', {
|
|||||||
|
|
||||||
// Check if Maria or MySQL
|
// Check if Maria or MySQL
|
||||||
const isMySQL = version.name.includes('MySQL');
|
const isMySQL = version.name.includes('MySQL');
|
||||||
|
const isMaria = version.name.includes('Maria');
|
||||||
|
|
||||||
if (isMySQL && connection.client !== 'mysql') {
|
if (isMySQL && connection.client !== 'mysql') {
|
||||||
const connProxy = Object.assign({}, connection);
|
const connProxy = Object.assign({}, connection);
|
||||||
connProxy.client = 'mysql';
|
connProxy.client = 'mysql';
|
||||||
connectionsStore.editConnection(connProxy);
|
connectionsStore.editConnection(connProxy);
|
||||||
}
|
}
|
||||||
else if (!isMySQL && connection.client === 'mysql') {
|
else if (isMaria && connection.client === 'mysql') {
|
||||||
const connProxy = Object.assign({}, connection);
|
const connProxy = Object.assign({}, connection);
|
||||||
connProxy.client = 'maria';
|
connProxy.client = 'maria';
|
||||||
connectionsStore.editConnection(connProxy);
|
connectionsStore.editConnection(connProxy);
|
||||||
|
Reference in New Issue
Block a user