$max_size = $inf->{size} * 4 if $inf->{size};
}
# Blob types
- elsif ($data_type =~ /(?:blob|clob|bfile|text|image|bytea)/
- || $data_type =~ /^long(?:\s*(?:raw|bit\s*varying|varbit|binary
- |varchar|character\s*varying|nvarchar
- |national\s*character\s*varying))?$/
- ) {
+ elsif ($self->_is_lob_type($data_type)) {
# default to longreadlen
}
else {
};
}
+# Determine if a data_type is some type of BLOB
+sub _is_lob_type {
+ my ($self, $data_type) = @_;
+ $data_type && ($data_type =~ /(?:lob|bfile|text|image|bytea|memo)/i
+ || $data_type =~ /^long(?:\s*(?:raw|bit\s*varying|varbit|binary
+ |varchar|character\s*varying|nvarchar
+ |national\s*character\s*varying))?$/xi);
+}
+
1;
=head1 USAGE NOTES
if exists $args{log_on_update};
}
-sub _is_lob_type {
- my $self = shift;
- my $type = shift;
- $type && $type =~ /(?:text|image|lob|bytea|binary|memo)/i;
-}
-
sub _is_lob_column {
my ($self, $source, $column) = @_;