Livi has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help needed
by Old_Gray_Bear (Bishop) on Aug 22, 2011 at 10:53 UTC | |
|
Re: Help needed
by Anonymous Monk on Aug 22, 2011 at 10:45 UTC | |
|
Re: Help needed
by Anonymous Monk on Aug 22, 2011 at 14:53 UTC |