'Sub::Name' => '0.04',
'Variable::Magic' => '0.44',
- # corelibs needing a specific bugfixed version
+ # dual-life corelibs needing a specific bugfixed version
'File::Path' => '2.07',
-
- # Oracle-only optionals
- 'Math::BigInt' => '1.89',
- 'Math::Base36' => '0.07',
};
# this is so we can order requires alphabetically
'DateTime::Format::Strptime' => '1.2',
};
+my $id_shortener = {
+ 'Math::BigInt' => '1.89',
+ 'Math::Base36' => '0.07',
+};
+
my $reqs = {
dist => {
#'Module::Install::Pod::Inherit' => '0.01',
},
pod => {
title => 'Storage::DBI::deploy()',
- desc => 'Modules required for L<DBIx::Class::Storage::DBI/deploy> and L<DBIx::Class::Storage::DBI/deploymen_statements>',
+ desc => 'Modules required for L<DBIx::Class::Storage::DBI/deploy> and L<DBIx::Class::Storage::DBI/deployment_statements>',
},
},
+ id_shortener => {
+ req => $id_shortener,
+ },
+
test_pod => {
req => {
'Test::Pod' => '1.41',
req => {
$ENV{DBICTEST_ORA_DSN}
? (
+ %$id_shortener,
'DateTime::Format::Oracle' => '0',
'DBD::Oracle' => '1.24',
) : ()
use base qw( DBIx::Class::SQLMaker );
use Carp::Clan qw/^DBIx::Class|^SQL::Abstract/;
+BEGIN {
+ use Carp::Clan qw/^DBIx::Class/;
+ use DBIx::Class::Optional::Dependencies;
+ croak('The following extra modules are required for Oracle-based Storages ' . DBIx::Class::Optional::Dependencies->req_missing_for ('id_shortener') )
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('id_shortener');
+}
+
sub new {
my $self = shift;
my %opts = (ref $_[0] eq 'HASH') ? %{$_[0]} : @_;
use DBICTest;
use DBIC::SqlMakerTest;
+plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle')
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle');
+
$ENV{NLS_SORT} = "BINARY";
$ENV{NLS_COMP} = "BINARY";
$ENV{NLS_LANG} = "AMERICAN";
$ENV{NLS_COMP} = "BINARY";
$ENV{NLS_LANG} = "AMERICAN";
+plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle')
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle');
+
my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/};
plan skip_all => 'Set $ENV{DBICTEST_ORA_DSN}, _USER and _PASS to run this test.'
use strict;
use warnings;
use Test::More;
+
+BEGIN {
+ require DBIx::Class::Optional::Dependencies;
+ plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('id_shortener')
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('id_shortener');
+}
+
use Test::Exception;
use Data::Dumper::Concise;
use lib qw(t/lib);
use Test::More;
+BEGIN {
+ require DBIx::Class::Optional::Dependencies;
+ plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('id_shortener')
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('id_shortener');
+}
+
use lib qw(t/lib);
use DBIx::Class::SQLMaker::OracleJoins;
use DBICTest;
use DBIC::SqlMakerTest;
-my $sa = new DBIx::Class::SQLMaker::OracleJoins;
-
-# search with undefined or empty $cond
+my $sa = DBIx::Class::SQLMaker::OracleJoins->new;
# my ($self, $table, $fields, $where, $order, @rest) = @_;
my ($sql, @bind) = $sa->select(