|
|
@ -148,7 +148,8 @@ export class FormJdbc extends BI.Widget { |
|
|
|
const value = this.form.driver.getValue(); |
|
|
|
const value = this.form.driver.getValue(); |
|
|
|
const connectionData = this.options.formData.connectionData as ConnectionJDBC; |
|
|
|
const connectionData = this.options.formData.connectionData as ConnectionJDBC; |
|
|
|
const connectionType = getJdbcDatabaseType(connectionData.database, connectionData.driver); |
|
|
|
const connectionType = getJdbcDatabaseType(connectionData.database, connectionData.driver); |
|
|
|
const url = connectionType.urls ? connectionType.urls[value.driver] : connectionType.url; |
|
|
|
// DEC-2020
|
|
|
|
|
|
|
|
const url = (connectionType.urls && connectionType.urls[value.driver]) || connectionType.url; |
|
|
|
this.form.url.setValue(url); |
|
|
|
this.form.url.setValue(url); |
|
|
|
const urlInfo = resolveUrlInfo(url, connectionData.database); |
|
|
|
const urlInfo = resolveUrlInfo(url, connectionData.database); |
|
|
|
this.form.host.setValue(urlInfo.host); |
|
|
|
this.form.host.setValue(urlInfo.host); |
|
|
@ -712,7 +713,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: BI.VerticalLayout.xtype, |
|
|
|
type: BI.VerticalLayout.xtype, |
|
|
|
cls: 'bi-border-top', |
|
|
|
cls: 'bi-border-top', |
|
|
|
invisible: BI.parseInt(fetchSize) < 0, |
|
|
|
invisible: fetchSize < 0 && fetchSize !== -2, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
@ -723,7 +724,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
$value: 'fetch-size', |
|
|
|
$value: 'fetch-size', |
|
|
|
width: 300, |
|
|
|
width: 300, |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: fetchSize, |
|
|
|
value: fetchSize === -2 ? '' : fetchSize, |
|
|
|
watermark: 'Fetchsize', |
|
|
|
watermark: 'Fetchsize', |
|
|
|
validationChecker: [{ |
|
|
|
validationChecker: [{ |
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Check_Fetch_Size_Range'), |
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Check_Fetch_Size_Range'), |
|
|
@ -857,7 +858,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
creator: Dec ? Dec.personal.username : '', |
|
|
|
creator: Dec ? Dec.personal.username : '', |
|
|
|
principal: this.form.principal.getValue(), |
|
|
|
principal: this.form.principal.getValue(), |
|
|
|
keyPath: this.form.keyPath.getValue(), |
|
|
|
keyPath: this.form.keyPath.getValue(), |
|
|
|
fetchSize: BI.parseInt(this.form.fetchSize.getValue()), |
|
|
|
fetchSize: BI.isEmptyString(this.form.fetchSize.getValue()) ? -2 : BI.parseInt(this.form.fetchSize.getValue()), |
|
|
|
connectionPoolAttr: { |
|
|
|
connectionPoolAttr: { |
|
|
|
initialSize: this.form.initialSize.getValue(), |
|
|
|
initialSize: this.form.initialSize.getValue(), |
|
|
|
maxActive: this.form.maxActive.getValue(), |
|
|
|
maxActive: this.form.maxActive.getValue(), |
|
|
|