GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::CLASS::STORAGE::DBI::SYBASE::ASE::NOBINDVARS (3)

.ds Aq ’

NAME

DBIx::Class::Storage::DBI::Sybase::ASE::NoBindVars - Storage::DBI subclass for Sybase ASE without placeholder support

CONTENTS

DESCRIPTION

If you’re using this driver then your version of Sybase or the libraries you use to connect to it do not support placeholders.

You can also enable this driver explicitly using:



  my $schema = SchemaClass->clone;
  $schema->storage_type(::DBI::Sybase::ASE::NoBindVars);
  $schema->connect($dsn, $user, $pass, \%opts);



See the discussion in Using ? Placeholders & bind parameters to $sth->execute in DBD::Sybase for details on the pros and cons of using placeholders with this particular driver.

One advantage of not using placeholders is that select @@identity will work for obtaining the last insert id of an IDENTITY column, instead of having to do select max(col) in a transaction as the base Sybase driver does.

When using this driver, bind variables will be interpolated (properly quoted of course) into the SQL query itself, without using placeholders.

The caching of prepared statements is also explicitly disabled, as the interpolation renders it useless.

FURTHER QUESTIONS?

Check the list of additional DBIC resources.

COPYRIGHT AND LICENSE

This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::CLASS::STORAGE::DBI::SYBASE::ASE::NOBINDVARS (3) 2016-02-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.