NAME
DBIx::Class::Storage::DBI::NoBindVars - Sometime DBDs have poor to no support for bind variables
DESCRIPTION
This class allows queries to work when the DBD or underlying library does not support the usual ?
placeholders, or at least doesn't support them very well, as is the case with DBD::Sybase
METHODS
connect_info
We can't cache very effectively without bind variables, so force the disable_sth_caching
setting to be turned on when the connect info is set.
_prep_for_execute
Manually subs in the values for the usual ?
placeholders.
should_quote_data_type
This method is called by "_prep_for_execute" for every column in order to determine if its value should be quoted or not. The sole argument is the current column data type, and the return value is interpreted as: true - do quote, false - do not quote. You should override this in you Storage::DBI::<database> subclass, if your RDBMS does not like quotes around certain datatypes (e.g. Sybase and integer columns). The default method always returns true (do quote).
AUTHORS
Brandon Black <blblack@gmail.com>
Trym Skaar <trym@tryms.no>
LICENSE
You may distribute this code under the same terms as Perl itself.