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