fix _insert_dbh code to only connect when needed, doc update
[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
12sub _rebless {
13 my $self = shift;
14
15 $self->disable_sth_caching(1);
16}
17
181;
19
20=head1 NAME
21
22DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars - Support for Microsoft
23SQL Server via DBD::Sybase without placeholders
24
25=head1 SYNOPSIS
26
27This subclass supports MSSQL server connections via DBD::Sybase when ? style
28placeholders are not available.
29
30=head1 DESCRIPTION
31
32If you are using this driver then your combination of L<DBD::Sybase> and
33libraries (most likely FreeTDS) does not support ? style placeholders.
34
35This storage driver uses L<DBIx::Class::Storage::DBI::NoBindVars> as a base.
36This means that bind variables will be interpolated (properly quoted of course)
37into the SQL query itself, without using bind placeholders.
38
39More importantly this means that caching of prepared statements is explicitly
40disabled, as the interpolation renders it useless.
41
42In all other respects, it is a subclass of
43L<DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server>.
44
45=head1 AUTHOR
46
47See L<DBIx::Class/CONTRIBUTORS>.
48
49=head1 LICENSE
50
51You may distribute this code under the same terms as Perl itself.
52
53=cut