Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/GADS/Datum/Code.pm
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ sub write_cache
my $formatter = $self->schema->storage->datetime_parser;

my @values = sort @{$self->value} if defined $self->value->[0];
# If the length is greater than 250 characters do not insert it to the cache table
return if grep { $_ > 250 } map { length($_) } @values;

# We are generally already in a transaction at this point, but
# start another one just in case
Expand Down
Loading