use mro 'c3';
use List::Util 'first';
use Try::Tiny;
-use DBIx::Class::Storage::DBI::SQLAnywhere::Cursor ();
use namespace::clean;
__PACKAGE__->mk_group_accessors(simple => qw/_identity/);
sub _prefetch_autovalues {
my $self = shift;
- my ($source, $to_insert) = @_;
+ my ($source, $colinfo, $to_insert) = @_;
my $values = $self->next::method(@_);
- my $colinfo = $source->columns_info;
-
my $identity_col =
first { $colinfo->{$_}{is_auto_increment} } keys %$colinfo;