$VERSION = '0.08123';

I'm using populate like this:

                try { $pos_marker_rs->populate( \@pos_marker_rows ); }
                catch { die "$_\n" . Dumper \@pos_marker_rows };

And it works mostly, but sometimes I get an error:

DBIx::Class::Storage::DBI::txn_do():
DBIx::Class::Storage::DBI::insert_bulk():
DBI Exception: DBD::Pg::st bind_param_array failed:
Arrayref for parameter 1 has 6 elements but parameter 6 has 11 [for
Statement
"INSERT INTO pos_marker ( end_pos, end_line, end_page_index, entry,
start_pos, start_line, start_page_index)
VALUES ( ?, ?, ?, ?, ?, ?, ? )" with ParamValues: 1='98',
2='16', 3='0', 4='66275820', 5='96', 6='16', 7='0'] at
/home/palladium/perl5/lib/perl5/i686-linux-thread-multi/Moose/Meta/Method/Delegation.pm

I'm not sure I understand that error.  Here's the dump of that array.  They
all looks like 7 elements to me, if that's what the error means.  Only
slightly odd thing I see is the "entry" column id is quoted.

$VAR1 = [
          [
            'entry',
            'start_page_index',
            'start_line',
            'start_pos',
            'end_page_index',
            'end_line',
            'end_pos'
          ],
          [
            '66275877',
            0,
            1,
            0,
            0,
            1,
            33
          ],
          [
            '66275878',
            0,
            1,
            35,
            0,
            1,
            78
          ],
          [
            '66275879',
            0,
            1,
            80,
            0,
            2,
            23
          ],
          [
            '66275880',
            0,
            2,
            25,
            0,
            2,
            68
          ],
          [
            '66275881',
            0,
            1,
            0,
            0,
            1,
            33
          ],
          [
            '66275882',
            0,
            1,
            0,
            0,
            1,
            33
          ]
        ];


-- 
Bill Moseley
[email protected]
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to