Troubles using bind_param_array and execute_array with DBD::Ingres



Hi Everyone,

I posted a couple of weeks ago but didn't get any responses, and I'm
still stuck.

I'm trying to do bulk inserts into Ingres, but I can't get it to work.

Inserting one row of data at a time is OK:

for my $c (0 .. 1)
{
$sth2_put->bind_param
($c+1 , $row[$c], {TYPE => SQL_INTEGER});
}
$sth2_put->execute() || die $dbh2->errstr;

but trying this with array of values fails:

for my $c (0 .. 1)
{
$sth2_put->bind_param_array
($c+1 , $cols[$c], {TYPE=>SQL_INTEGER});
}
$sth2_put->execute_array({ArrayTupleStatus => \my @tuple_status}) ||
die $dbh2->errstr;

This produces an error: execute_array failed: E_US0B61 line 1, You
cannot assign a value of type 'varchar' to a column of type 'integer'.
Explicitly convert the value to the required type.

Am I using this correclty? Is this not fully implemented in
DBD::Ingres?

TIA

-Mia

.



Relevant Pages

  • Re: Literal-ness !!
    ... If a person does not supply a massive amount of related "bulk" with their ... Responses> rapidly appear that "read-into" the original post ALL SORTS of things that> simply were not contained or even suggested in that post! ... > Then there are the responses that critisize the original postee for not> having included a MASSIVE BULK of related background information - in the> original post! ...
    (microsoft.public.windowsxp.general)
  • Re: Best Temp for secondary?
    ... Thanks Ray and Darlene for your responses. ... I followed Jack Keller's procedures for re-starting a stuck ... starting a stuck fermentation). ... but still fermenting under the airlock. ...
    (rec.crafts.winemaking)
  • Re: If you dont like GTR you wont like GTL
    ... >>Is it simply that some are so stuck on GPL, ... (Responses to this query will give me the answer.) ...
    (rec.autos.simulators)
  • Re: If you dont like GTR you wont like GTL
    ... >Is it simply that some are so stuck on GPL, ... (Responses to this query will give me the answer.) ...
    (rec.autos.simulators)
  • Re: Made my own puzzle website
    ... Stuck now at "You gotta feel sorry for him." ... How likely are you to update the Hall of Shame soon? ... particular page gotten a very large number of the same wrong responses? ...
    (rec.puzzles)