Skip to content

Commit

Permalink
Remove silly sub wrapper in Explain internals
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Jun 28, 2014
1 parent 6bf6f27 commit bc6e05e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Revision history for {{$dist->name}}

{{$NEXT}}
- Remove silly layer of subtesting (thanks to new features in Test::Roo)
- Remove silly sub wrapper in Explain internals (should moderately increase
performance)

2.023001 2014-06-14 12:39:08-05:00 America/Chicago
- Add handy SYNOPSIS to ::DateMethods1 (thanks for asking rjbs!)
Expand Down
10 changes: 5 additions & 5 deletions lib/DBIx/Class/Helper/ResultSet/Random.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ sub _introspector {
my $d = use_module('DBIx::Introspector')
->new(drivers => '2013-12.01');

$d->decorate_driver_unconnected(ACCESS => rand_sql => sub { 'RND()' });
$d->decorate_driver_unconnected(Oracle => rand_sql => sub { 'dbms_random.value' });
$d->decorate_driver_unconnected(Pg => rand_sql => sub { 'RANDOM()' });
$d->decorate_driver_unconnected(MSSQL => rand_sql => sub { 'NEWID()' });
$d->decorate_driver_unconnected(SQLite => rand_sql => sub { 'RANDOM()' });
$d->decorate_driver_unconnected(ACCESS => rand_sql => 'RND()' );
$d->decorate_driver_unconnected(Oracle => rand_sql => 'dbms_random.value' );
$d->decorate_driver_unconnected(Pg => rand_sql => 'RANDOM()' );
$d->decorate_driver_unconnected(MSSQL => rand_sql => 'NEWID()' );
$d->decorate_driver_unconnected(SQLite => rand_sql => 'RANDOM()' );

$d
}
Expand Down

0 comments on commit bc6e05e

Please sign in to comment.