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 as:
24
25         on_connect_call => ['set_auto_cast']
26
27   connect_call_set_auto_cast
28       Executes:
29
30         $schema->storage->auto_cast(1);
31
32       on connection.
33
34       Used as:
35
36           on_connect_call => ['set_auto_cast']
37
38       in connect_info.
39

FURTHER QUESTIONS?

41       Check the list of additional DBIC resources.
42
44       This module is free software copyright by the DBIx::Class (DBIC)
45       authors. You can redistribute it and/or modify it under the same terms
46       as the DBIx::Class library.
47
48
49
50perl v5.38.0                      2023-07D-B2I0x::Class::Storage::DBI::AutoCast(3)
Impressum