|
|
|
@ -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() { |
|
|
|
|