| 1 | package Fey::FakeDBI; | ||||||||||
| 2 | |||||||||||
| 3 | 29 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 29 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 29 | our $VERSION = '0.44'; | |||||||||
| 7 | |||||||||||
| 8 | # This package allows us to use a DBI handle in id(). Even though we | ||||||||||
| 9 | # may not be quoting properly for a given DBMS, we will still generate | ||||||||||
| 10 | # unique ids, and that's all that matters. | ||||||||||
| 11 | |||||||||||
| 12 | 15 | ▶ | sub quote_identifier { | ||||||||
|
Subroutine
quote_identifier: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 13 | 15 | shift; | |||||||||
| 14 | |||||||||||
| 15 | 15 | ▶ | if ( @_ == 3 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 7 | return q{"} . $_[1] . q{"} . q{.} . q{"} . $_[2] . q{"}; | |||||||||
| 17 | } | ||||||||||
| 18 | else { | ||||||||||
| 19 | |||||||||||
| 20 | 8 | return q{"} . $_[0] . q{"}; | |||||||||
| 21 | } | ||||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 2 | ▶ | sub quote { | ||||||||
|
Subroutine
quote: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 25 | 2 | my $text = $_[1]; | |||||||||
| 26 | |||||||||||
| 27 | 2 | $text =~ s/"/""/g; | |||||||||
| 28 | 2 | return q{"} . $text . q{"}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 29 | 1; | |||||||||
| 32 | |||||||||||
| 33 | # ABSTRACT: Just enough of the DBI API to fool Fey | ||||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||