1DBIx::Class::Storage::DUBsIe:r:ACuotnotCraisbtu(t3e)d PeDrBlIxD:o:cCulmaesnst:a:tSitoonrage::DBI::AutoCast(3)
2
3
4

NAME

6       DBIx::Class::Storage::DBI::AutoCast - Storage component for RDBMS
7       requiring explicit placeholder typing
8

SYNOPSIS

10         $schema->storage->auto_cast(1);
11

DESCRIPTION

13       In some combinations of RDBMS and DBD drivers (e.g. FreeTDS and Sybase)
14       statements with values bound to columns or conditions that are not
15       strings will throw implicit type conversion errors.
16
17       As long as a column data_type is defined and resolves to a base RDBMS
18       native type via "_native_data_type" as defined in your Storage driver,
19       the placeholder for this column will be converted to:
20
21         CAST(? as $mapped_type)
22
23       This option can also be enabled in "connect_info" in
24       DBIx::Class::Storage::DBI as:
25
26         on_connect_call => ['set_auto_cast']
27
28   connect_call_set_auto_cast
29       Executes:
30
31         $schema->storage->auto_cast(1);
32
33       on connection.
34
35       Used as:
36
37           on_connect_call => ['set_auto_cast']
38
39       in "connect_info" in DBIx::Class::Storage::DBI.
40

AUTHOR

42       See "CONTRIBUTORS" in DBIx::Class
43

LICENSE

45       You may distribute this code under the same terms as Perl itself.
46
47
48
49perl v5.12.0                      2010-05D-B1I2x::Class::Storage::DBI::AutoCast(3)
Impressum