diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index aefb72a..9ab16e5 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -508,8 +508,7 @@ export class FormJdbc extends BI.Widget { private getDrivers() { const connectionData = this.options.formData.connectionData as ConnectionJDBC; const connectionType = getJdbcDatabaseType(connectionData.database, connectionData.driver); - - return connectionType.drivers ? + const drivers = connectionType.drivers ? connectionType.drivers.map(item => { return { text: item, @@ -520,6 +519,17 @@ export class FormJdbc extends BI.Widget { text: connectionType.driver, value: connectionType.driver, }]; + + if (!drivers.some(item => item.text === connectionData.driver)) { + return [ + { + text: connectionData.driver, + value: connectionData.driver, + }, + ]; + } + + return drivers; } private getBooleanItem() {