add .$inc to driver version
Arthur Axel 'fREW' Schmidt
10 years ago
57 | 57 |
},
|
58 | 58 |
{ name => 'ADO_MS_Jet', parents => ['ACCESS', 'ADO'] },
|
59 | 59 |
{ name => 'ADO_Microsoft_SQL_Server', parents => ['MSSQL', 'ADO'] },
|
60 | |
] if $_[0] eq '2013.12'
|
|
60 |
] if $_[0] eq '2013-12.01'
|
61 | 61 |
},
|
62 | 62 |
);
|
63 | 63 |
|
|
182 | 182 |
|
183 | 183 |
=head1 SYNOPSIS
|
184 | 184 |
|
185 | |
my $d = DBIx::Introspector->new(drivers => '2013.12');
|
|
185 |
my $d = DBIx::Introspector->new(drivers => '2013-12.01');
|
186 | 186 |
|
187 | 187 |
# standard dialects
|
188 | 188 |
$d->decorate_driver_unconnected(Pg => concat_sql => '? || ?');
|
|
281 | 281 |
|
282 | 282 |
This has no default and is required, though a sane defaultish value does exist.
|
283 | 283 |
|
284 | |
Currently there is one predefined set of drivers, named C<2013.12>. If drivers
|
|
284 |
Currently there is one predefined set of drivers, named C<2013-12.01>. If drivers
|
285 | 285 |
or facts or just the general structure of drivers changes they will always be as
|
286 | |
a new named set of drivers. C<2013.12> matches the 0.08250 release of
|
|
286 |
a new named set of drivers. C<2013-12.01> matches the 0.08250 release of
|
287 | 287 |
L<DBIx::Class> and probably many previous and following releases.
|
288 | 288 |
|
289 | 289 |
If you need to define it from scratch, you can just pass an arrayref of drivers;
|
11 | 11 |
test basic => sub {
|
12 | 12 |
my $self = shift;
|
13 | 13 |
|
14 | |
my $d = DBIx::Introspector->new( drivers => '2013.12' );
|
|
14 |
my $d = DBIx::Introspector->new( drivers => '2013-12.01' );
|
15 | 15 |
|
16 | 16 |
is(
|
17 | 17 |
$d->get(undef, $self->dsn, '_introspector_driver'),
|
5 | 5 |
use Test::More;
|
6 | 6 |
use DBIx::Introspector;
|
7 | 7 |
|
8 | |
my $d = DBIx::Introspector->new( drivers => '2013.12' );
|
|
8 |
my $d = DBIx::Introspector->new( drivers => '2013-12.01' );
|
9 | 9 |
|
10 | 10 |
$d->decorate_driver_connected(MSSQL => concat_sql => sub { '%s + %s' });
|
11 | 11 |
my $n = $d->_drivers_by_name;
|