line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1395
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
63
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
|
|
215
|
use base qw/ |
7
|
|
|
|
|
|
|
DBIx::Class::Storage::DBI::NoBindVars |
8
|
|
|
|
|
|
|
DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server |
9
|
2
|
|
|
2
|
|
9
|
/; |
|
2
|
|
|
|
|
4
|
|
10
|
2
|
|
|
2
|
|
9
|
use mro 'c3'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _init { |
13
|
0
|
|
|
0
|
|
|
my $self = shift; |
14
|
0
|
|
|
|
|
|
$self->disable_sth_caching(1); |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
$self->next::method(@_); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars - Support for Microsoft |
24
|
|
|
|
|
|
|
SQL Server via DBD::Sybase without placeholders |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
This subclass supports MSSQL server connections via DBD::Sybase when ? style |
29
|
|
|
|
|
|
|
placeholders are not available. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
If you are using this driver then your combination of L and |
34
|
|
|
|
|
|
|
libraries (most likely FreeTDS) does not support ? style placeholders. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This storage driver uses L as a base. |
37
|
|
|
|
|
|
|
This means that bind variables will be interpolated (properly quoted of course) |
38
|
|
|
|
|
|
|
into the SQL query itself, without using bind placeholders. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
More importantly this means that caching of prepared statements is explicitly |
41
|
|
|
|
|
|
|
disabled, as the interpolation renders it useless. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
In all other respects, it is a subclass of |
44
|
|
|
|
|
|
|
L. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 FURTHER QUESTIONS? |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Check the list of L. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This module is free software L |
53
|
|
|
|
|
|
|
by the L. You can |
54
|
|
|
|
|
|
|
redistribute it and/or modify it under the same terms as the |
55
|
|
|
|
|
|
|
L. |