line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
446
|
use 5.006; use strict; no warnings; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
70
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package DBIx::Simple::Interpol; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.006'; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
358
|
use SQL::Interpol (); |
|
1
|
|
|
|
|
2983
|
|
|
1
|
|
|
|
|
30
|
|
8
|
1
|
|
|
1
|
|
770
|
use DBIx::Simple (); |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
118
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
1
|
|
|
1
|
|
706
|
shift; |
12
|
1
|
|
|
|
|
5
|
my $prelude = sprintf qq'package %s;\n#line %d "%s"\n', ( caller )[0,2,1]; |
13
|
1
|
|
|
|
|
39
|
my $sub = eval qq{ sub { $prelude SQL::Interpol->import(\@_) } }; |
14
|
1
|
|
|
|
|
9
|
&$sub; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub iquery { |
18
|
1
|
|
|
1
|
0
|
868
|
my $self = shift; |
19
|
1
|
|
|
|
|
4
|
my $p = SQL::Interpol::Parser->new; |
20
|
1
|
|
|
|
|
11
|
my $sql = $p->parse( @_ ); |
21
|
1
|
|
|
|
|
119
|
$self->query( $sql, @{ $p->bind } ); |
|
1
|
|
|
|
|
14
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
die 'Cannot find method to patch' if not DBIx::Simple->can( 'iquery' ); |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
|
6
|
do { no warnings 'redefine'; *DBIx::Simple::iquery = \&iquery }; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |