Skip to content

Commit 5319732

Browse files
committed
fix: Oracle service name bug
1 parent 75dc1b9 commit 5319732

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

chat2db-client/src/components/ConnectionEdit/config/dataSource.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ export const dataSourceFormConfigs: IConnectionConfig[] = [
450450
},
451451
}],
452452
onChange: (data: IConnectionConfig) => {
453-
data.baseInfo.pattern = /jdbc:oracle:(.*):@\/\/(.*):(\d+):(.*)/;
454-
data.baseInfo.template = 'jdbc:oracle:{driver}:@//{host}:{port}:{serviceName}';
453+
data.baseInfo.pattern = /jdbc:oracle:(.*):@\/\/(.*):(\d+)\/(.*)/;
454+
data.baseInfo.template = 'jdbc:oracle:{driver}:@//{host}:{port}/{serviceName}';
455455
return data
456456
}
457457
},
@@ -470,15 +470,17 @@ export const dataSourceFormConfigs: IConnectionConfig[] = [
470470
labelTextAlign: 'right',
471471
selects: [
472472
{
473-
value: 'thin',
473+
value: 'THIN',
474+
label: 'thin',
474475
},
475476
{
476-
477-
value: 'oci',
477+
value: 'OCI',
478+
label: 'oci',
478479
},
479480
{
480481

481-
value: 'oci8',
482+
value: 'OCI8',
483+
label: 'oci8',
482484
},
483485
],
484486
styles: {

0 commit comments

Comments
 (0)