Skip to content

Commit

Permalink
only use sid if serviceName is not provided, do not use both
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 13, 2025
1 parent 4385444 commit 9259792
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/database/src/datasources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ export async function getDatabaseURL(
let connectData = ''
if (ds.data.serviceName) {
connectData += `(service_name=${ds.data.serviceName})`
}
if (ds.data.sid) {
} else if (ds.data.sid) {
connectData += `(sid=${ds.data.sid})`
}

Expand Down

0 comments on commit 9259792

Please sign in to comment.