Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 84657
Status: resolved
Priority: 0/
Queue: DBD-Oracle

People
Owner: Nobody in particular
Requestors: sgoeldner [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Use of uninitialized value $user_only in uc
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.11-29946-1366099132-215.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1366099132-29946-12"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 405
Download (untitled) / with headers
text/plain 405b
Running #!perl -w use DBI(); use DBD::Oracle(); my $att = { RaiseError => 1 }; $att->{ora_session_mode} = DBD::Oracle::ORA_SYSDBA | DBD::Oracle::OCI_PRELIM_AUTH; my @cxn = ('dbi:Oracle:', undef, undef, $att ); my $dbh = DBI->connect( @cxn ); $dbh->disconnect; gives Use of uninitialized value $user_only in uc ... at Oracle.pm line 310. The attached patch fixes this.
Subject: Oracle.pm.diff
MIME-Version: 1.0
Content-Type: application/octet-stream; name="Oracle.pm.diff"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="Oracle.pm.diff"
Content-Transfer-Encoding: base64
Content-Length: 425
Download Oracle.pm.diff
text/x-diff 425b
--- Oracle.160 Mon Apr 01 17:42:12 2013 +++ Oracle.pm Tue Apr 16 09:46:36 2013 @@ -304,7 +304,7 @@ unless (length $user_only) { $user_only = $dbh->selectrow_array(q{ SELECT SYS_CONTEXT('userenv','session_user') FROM DUAL - }); + })||''; $dbh_inner->{Username} = $user_only; # these two are just for backwards compatibility $dbh_inner->{USER} = $dbh_inner->{CURRENT_USER} = uc $user_only;
MIME-Version: 1.0
In-Reply-To: <rt-4.0.11-29946-1366099132-215.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.11-29946-1366099132-215.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.11-8580-1366915933-45.84657-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 46
Merged to master. Thank you. Michael Portnoy
MIME-Version: 1.0
In-Reply-To: <rt-4.0.11-29946-1366099132-215.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.11-29946-1366099132-215.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.12-16628-1369249876-1213.84657-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 8
in v1.64


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.