[svn:dbd-oracle] r14922 - in dbd-oracle/trunk: . t

[email protected] Fri, 26 Aug 2011 12:12:30 -0700 (PDT)
Newsgroups perl.dbd.oracle.changes
Message-ID <[email protected]>
Author: yanick
Date: Fri Aug 26 12:12:30 2011
New Revision: 14922

Added:
   dbd-oracle/trunk/t/00versions.t
Modified:
   dbd-oracle/trunk/Changes
   dbd-oracle/trunk/Oracle.pm
   dbd-oracle/trunk/t/31lob.t

Log:
Squashed commit of the following:

commit 08712fbc2c07802934d851467d93de82bb22dce9
Merge: 16056ab 1d920f3
Author: Yanick Champoux <[email protected]>
Date:   Fri Aug 26 15:10:34 2011 -0400

    Merge branch 'release-1.30'

    Conflicts:
    	Changes

commit 1d920f3ef827b2ee036554bc9498a99c0b06fe11
Author: Yanick Champoux <[email protected]>
Date:   Fri Aug 26 14:23:10 2011 -0400

    release work

commit 16056ab5b9ed0e2f41d75ee1e45e04d2c7f4caaa
Author: Yanick Champoux <[email protected]>
Date:   Fri Aug 26 11:25:24 2011 -0400

    version test

commit 9dff29d6c75d44ff93e6e108442776f99379fb80
Merge: a27a2bd 836ee29
Author: Yanick Champoux <[email protected]>
Date:   Fri Jul 29 14:55:52 2011 -0400

    Merge remote-tracking branch 'trunk'

commit a27a2bd7131537ea2e4d334d26423a9104fe78b0
Author: Yanick Champoux <[email protected]>
Date:   Fri Jul 29 14:54:50 2011 -0400

    VMS check was after 'exit 0;'

commit 32703b3a6f3c3d311b9601029bd597f0229503da
Merge: 7b06151 c19069f
Author: Yanick Champoux <[email protected]>
Date:   Wed Jul 27 15:09:19 2011 -0400

    Merge remote-tracking branch 'trunk'

    Conflicts:
    	Changes

commit 7b061513e67aeeb8a7ec956c9221a034e82399b2
Author: Yanick Champoux <[email protected]>
Date:   Wed Jul 27 14:57:51 2011 -0400

    document Makefile.PL options

commit f70145900adbb51c52ba8f91a2b08f0546cc5aa1
Author: Yanick Champoux <[email protected]>
Date:   Sun Jul 24 20:13:56 2011 -0400

    Makefile.PL cleanup

commit 13a9e16ff51f1c0f58b0ae56fd37460766a71bec
Author: Yanick Champoux <[email protected]>
Date:   Wed Jul 27 14:36:30 2011 -0400

    don't gag diag() by default

commit c82c17e4c12ee0a9b28394b2e4096c97a4172f22
Author: Yanick Champoux <[email protected]>
Date:   Sat Jul 2 17:45:22 2011 -0400

    prep work for v1.29_1

commit 9d4e9c1de54f6b294b9224ed4bf18c6b8cc93e15
Merge: 8b5f37a 609ee60
Author: Yanick Champoux <[email protected]>
Date:   Fri Jun 24 15:27:15 2011 -0400

    Merge remote-tracking branch 'github/cpan-changes'

commit 8b5f37afad7498a7438aab0ec927b8af51306f35
Merge: 5ade6e8 1a25412 135d6eb
Author: Yanick Champoux <[email protected]>
Date:   Fri Jun 24 15:26:47 2011 -0400

    Merge remote-tracking branches 'github/pod-test' and 'github/58object'

commit 5ade6e8f4ca5152d3f2404ef824ed8579685de1a
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 21:30:21 2011 -0400

    pod test

commit f1a9c1bfecc0202e05b6de3644c543e70ab7d95d
Author: Yanick Champoux <[email protected]>
Date:   Fri Jun 24 15:15:51 2011 -0400

    skip tests if not the right permission (instead of dying)

commit 135d6eb3ea25e4425228abe40d76b5880023b8e0
Author: Yanick Champoux <[email protected]>
Date:   Fri Jun 24 15:15:51 2011 -0400

    skip tests if not the right permission (instead of dying)

commit 3eb3257cd705287d6ae9168e7623808ecd196ca3
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 21:58:12 2011 -0400

    add ref to rt #

commit 609ee603391587155e3ced911055cecc31048866
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 21:50:43 2011 -0400

    add test for changelog

commit c70b3450d308410c8501980481dc5fede0eb8d97
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 21:33:06 2011 -0400

    add wishlist

commit 1a25412dbe0277e82855b9e024e9cdeae274393d
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 21:30:21 2011 -0400

    pod test

commit 3491b687f6ddfddb668bcb107d90eb2df0b3be84
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 20:45:09 2011 -0400

    credit Marc as well for rt67942

commit 6887d28bf1fb98980605b877342986982a4ffb34
Merge: 660336e 06dbd05
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 20:34:44 2011 -0400

    Merge remote-tracking branch 'trunk' into rt67942-etc

commit 660336e7a36cf6b684db84638d2eac3d19c78e93
Merge: 10970b5 d241767
Author: Yanick Champoux <[email protected]>
Date:   Tue Jun 21 20:30:36 2011 -0400

    Merge commit 'd24176782d3f4e02' into rt67942-etc

    Conflicts:
    	Oracle.pm

commit 10970b5f404dbdd60fb1bf379b2a15c35c914ec9
Author: Yanick Champoux <[email protected]>
Date:   Wed May 4 17:59:52 2011 -0400

    add '/etc' to where we look for tnsnames.ora

Modified: dbd-oracle/trunk/Changes
==============================================================================
--- dbd-oracle/trunk/Changes	(original)
+++ dbd-oracle/trunk/Changes	Fri Aug 26 12:12:30 2011
@@ -1,6 +1,6 @@
 Revision history for DBD::Oracle
 
-Changes in DBD-Oracle 1.29_2
+Changes in DBD-Oracle XXX
  [ENHANCEMENTS]
  - Makefile.PL's options are now documented
 
@@ -8,6 +8,10 @@
  - support development release versions in GetInfo (Martin J. Evans)
  - don't gag diag() on the tests by default
 
+Changes in DBD-Oracle 1.30
+  [DOCUMENTATION]
+ - add warning about RT#69350 in documentation 
+
 Changes in DBD-Oracle 1.29_1
  [ENHANCEMENTS]
  - added support for TAF callback (John Scoles)

Modified: dbd-oracle/trunk/Oracle.pm
==============================================================================
--- dbd-oracle/trunk/Oracle.pm	(original)
+++ dbd-oracle/trunk/Oracle.pm	Fri Aug 26 12:12:30 2011
@@ -7,7 +7,7 @@
 
 require 5.006;
 
-$DBD::Oracle::VERSION = '1.29_1';
+$DBD::Oracle::VERSION = '1.30';
 
 my $ORACLE_ENV  = ($^O eq 'VMS') ? 'ORA_ROOT' : 'ORACLE_HOME';
 
@@ -5584,6 +5584,12 @@
 Also PL/Vision from RevealNet and Steven Feuerstein, and
 "Q" from Savant Corporation.
 
+=head1 BUGS AND LIMITATIONS
+
+There is a known problem with the 11.2g Oracle client and the 
+C<DBMS_LOB.GETLENGTH()> PL/SQL function.  
+See L<https://rt.cpan.org/Public/Bug/Display.html?id=69350> for the details.
+
 
 =head1 SEE ALSO
 

Added: dbd-oracle/trunk/t/00versions.t
==============================================================================
--- (empty file)
+++ dbd-oracle/trunk/t/00versions.t	Fri Aug 26 12:12:30 2011
@@ -0,0 +1,45 @@
+# reports on all interesting versions
+
+use strict;
+use warnings;
+
+use lib 't';
+
+use Test::More tests => 2;
+
+use DBD::Oracle qw/ ORA_OCI /;
+require 'nchar_test_lib.pl';
+
+my $oci_version = ORA_OCI();
+
+diag "OCI client library version: ", $oci_version;
+
+ok $oci_version;
+
+SKIP: {
+    my $dsn = oracle_test_dsn();
+    my $dbuser = $ENV{ORACLE_USERID} || 'scott/tiger';
+    
+    my $dbh = DBI->connect($dsn, $dbuser, '',{ PrintError => 0, }) or 
+        note <<'END_NOTE' or skip q{can't connect to database} => 1;
+
+Can't connect to an Oracle instance. 
+
+Without a database connection, most of DBD::Oracle's test suite will
+be skipped. To let the tests use a database, set up the 
+environment variables ORACLE_USERID and ORACLE_DSN. E.g.:
+
+    $ export ORACLE_USERID='scott/tiger'
+    $ export ORACLE_DSN='dbi:Oracle:testdb'
+
+END_NOTE
+
+    my $sth = $dbh->prepare( q{select * from v$version where banner like 'Oracle%'} );
+    $sth->execute;
+
+    my $version = join ' ', $sth->fetchrow;
+
+    diag 'database version: ', $version;
+
+    ok $version;
+}

Modified: dbd-oracle/trunk/t/31lob.t
==============================================================================
--- dbd-oracle/trunk/t/31lob.t	(original)
+++ dbd-oracle/trunk/t/31lob.t	Fri Aug 26 12:12:30 2011
@@ -2,12 +2,15 @@
 
 use strict;
 use Test::More;
-use DBD::Oracle qw(:ora_types);
+use DBD::Oracle qw(:ora_types ORA_OCI );
 use DBI;
 
 unshift @INC ,'t';
 require 'nchar_test_lib.pl';
 
+plan skip_all => "see RT#69350"
+    if ORA_OCI() =~ /^11\.2\./;
+
 my $dbh;
 $| = 1;
 SKIP: {