Hi, I encounter the below mentioned error when I insert data into MySQL table as arrays. The primary key is (c_type,d_pattern). I have checked the arrays and they are properly populated.Please help me out

DBD::mysqlPP::st execute_array failed: #23000Column 'c_type' cannot be nul l err was 1048 now 2000000000 executing 200 generated 100 errors at D:\Project\Tools\my_tool.pl line 463, <BATCH> line 1.

$insert = $dbh->prepare("INSERT INTO $table_name(s_no,c_type,jur,home, +lni,citation,d_pattern,d_text) VALUES(?,?,?,?,?,?,?,?) ON DUPLICATE K +EY UPDATE s_no = s_no,c_type = c_type, jur = jur, home = home, lni = +lni,citation =citation,d_pattern= d_pattern,d_text= d_text") ; my $input_tuples = $insert->execute_ar +ray({ ArrayTupleStatus => \my @tuple_status },\@index_array,\@c_array +,\@jur_array,\@home_array,\@l_array,\@c_array,\@in_array,\@p_array);

In reply to Help needed by Livi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.