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