Revision history for DBIx::Class::InflateColumn::IP
+ - Use numeric format for bigint columns.
+ - Use bigint column in test to cope with DBD::SQLite bind type changes.
+
0.02001 Sun Jun 17 20:27:34 2007
- Initial version of format autodetection, based solely on column type.
__PACKAGE__->load_components(qw/InflateColumn::IP Core/);
__PACKAGE__->add_columns(
ip_address => {
- data_type => 'integer',
+ data_type => 'bigint',
is_nullable => 0,
is_ip => 1,
ip_format => 'numeric',
DBIx::Class::InflateColumn::IP supports a limited amount of
auto-detection of the format based on the column type. If the type
-begins with C<int>, it's assumed to be numeric, while C<inet> and
-C<cidr> (as used by e.g. PostgreSQL) are assumed to be C<cidr> format.
+begins with C<int> or C<bigint>, it's assumed to be numeric, while
+C<inet> and C<cidr> (as used by e.g. PostgreSQL) are assumed to be
+C<cidr> format.
=head1 METHODS
}
my @format_map = (
- { type => qr/^int/i, format => 'numeric' },
+ { type => qr/^(?:big)?int/i, format => 'numeric' },
{ type => qr{^(?:inet|cidr)$}i, format => 'cidr' },
);