Refactor/improve support of DBD::Sybase compiled against FreeTDS (mainly MSSQL)
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Sybase / Microsoft_SQL_Server / NoBindVars.pm
CommitLineData
7379eb67 1package DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars;
2
3use strict;
4use warnings;
5
6use base qw/
7 DBIx::Class::Storage::DBI::NoBindVars
8 DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server
9/;
10use mro 'c3';
11
37b17a93 12sub _init {
7379eb67 13 my $self = shift;
7379eb67 14 $self->disable_sth_caching(1);
c1e5a9ac 15
16 $self->next::method(@_);
7379eb67 17}
18
191;
20
21=head1 NAME
22
23DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars - Support for Microsoft
24SQL Server via DBD::Sybase without placeholders
25
26=head1 SYNOPSIS
27
28This subclass supports MSSQL server connections via DBD::Sybase when ? style
29placeholders are not available.
30
31=head1 DESCRIPTION
32
33If you are using this driver then your combination of L<DBD::Sybase> and
34libraries (most likely FreeTDS) does not support ? style placeholders.
35
36This storage driver uses L<DBIx::Class::Storage::DBI::NoBindVars> as a base.
37This means that bind variables will be interpolated (properly quoted of course)
38into the SQL query itself, without using bind placeholders.
39
40More importantly this means that caching of prepared statements is explicitly
41disabled, as the interpolation renders it useless.
42
43In all other respects, it is a subclass of
44L<DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server>.
45
46=head1 AUTHOR
47
48See L<DBIx::Class/CONTRIBUTORS>.
49
50=head1 LICENSE
51
52You may distribute this code under the same terms as Perl itself.
53
54=cut