| 1 | package DBIO::MSSQL::Storage::Sybase::NoBindVars; | ||
| 2 | # ABSTRACT: Support for Microsoft SQL Server via DBD::Sybase without placeholders | ||
| 3 | |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base qw/ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | DBIO::Storage::DBI::NoBindVars | ||
| 9 | DBIO::MSSQL::Storage::Sybase | ||
| 10 | 1 | /; | |
| 11 | use mro 'c3'; | ||
| 12 | |||
| 13 | use namespace::clean; | ||
| 14 | |||
| 15 | |||
| 16 | sub _init { | ||
| 17 | my $self = shift; | ||
| 18 | |||
| 19 | $self->disable_sth_caching(1); | ||
| 20 | |||
| 21 | $self->next::method(@_); | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 1; | ||
| 26 | |||
| 27 | __END__ | ||
| 28 | |||
| 29 | =pod | ||
| 30 | |||
| 31 | =encoding UTF-8 | ||
| 32 | |||
| 33 | =head1 NAME | ||
| 34 | |||
| 35 | DBIO::MSSQL::Storage::Sybase::NoBindVars - Support for Microsoft SQL Server via DBD::Sybase without placeholders | ||
| 36 | |||
| 37 | =head1 VERSION | ||
| 38 | |||
| 39 | version 0.900001 | ||
| 40 | |||
| 41 | =head1 DESCRIPTION | ||
| 42 | |||
| 43 | Storage driver for Microsoft SQL Server accessed via L<DBD::Sybase> when your | ||
| 44 | combination of L<DBD::Sybase> and libraries (most likely FreeTDS) does not | ||
| 45 | support C<?> style placeholders. L<DBIO::MSSQL::Storage::Sybase> reblesses the | ||
| 46 | storage into this class automatically on connect when no placeholder support is | ||
| 47 | detected. | ||
| 48 | |||
| 49 | This driver uses L<DBIO::Storage::DBI::NoBindVars> as a base, so bind variables | ||
| 50 | are interpolated (properly quoted) into the SQL query itself instead of being | ||
| 51 | passed as placeholders. Because that renders prepared statement caching | ||
| 52 | useless, caching is explicitly disabled. | ||
| 53 | |||
| 54 | In all other respects it behaves as L<DBIO::MSSQL::Storage::Sybase>. | ||
| 55 | |||
| 56 | =head1 SEE ALSO | ||
| 57 | |||
| 58 | =over | ||
| 59 | |||
| 60 | =item * L<DBIO::MSSQL::Storage::Sybase> - MSSQL via L<DBD::Sybase> | ||
| 61 | |||
| 62 | =item * L<DBIO::Storage::DBI::NoBindVars> - placeholder-less interpolation base | ||
| 63 | |||
| 64 | =back | ||
| 65 | |||
| 66 | =head1 AUTHOR | ||
| 67 | |||
| 68 | DBIO & DBIx::Class Authors | ||
| 69 | |||
| 70 | =head1 COPYRIGHT AND LICENSE | ||
| 71 | |||
| 72 | Copyright (C) 2026 DBIO Authors | ||
| 73 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 74 | Based on DBIx::Class, heavily modified. | ||
| 75 | |||
| 76 | This is free software; you can redistribute it and/or modify it under | ||
| 77 | the same terms as the Perl 5 programming language system itself. | ||
| 78 | |||
| 79 | =cut | ||