Skip to content

Commit

Permalink
Try service_name instead of sid
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 22, 2023
1 parent afe87ce commit a49d012
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/App/Sqitch/Engine/oracle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ has dbh => (
$self->use_driver;

my $uri = $self->uri;
DBI->connect($uri->dbi_dsn, $self->username, $self->password, {
my $dsn = $uri->dbi_dsn;
say "# $dsn";
$dsn =~ s/sid=/service_name=/;
say "# $dsn";

DBI->connect($dsn, $self->username, $self->password, {
PrintError => 0,
RaiseError => 0,
AutoCommit => 1,
Expand Down

0 comments on commit a49d012

Please sign in to comment.