Re: $sth->execute(@$bindVars) is outputting an error

2006-04-01 Thread Martin J. Evans
Peter Loo wrote: Hi, I am trying to pass an array reference to $sth->execute and I am getting the following error: DBD::ODBC::st execute failed: called with 38 bind variables when 0 are needed at /usr/local/apps/common/devl/bin/GlobalRoutines.pm line 42. The code I am using is as follows: s

Re: $sth->execute(@$bindVars) is outputting an error

2006-04-01 Thread Peter Loo
Hi Martin, The value for $dbh->{Statemet} is as follows: insert into p_dlvrb_study_attributes (dlvrb_gid, study_gid, client_gid, slsfc_gid, mkt_def_gid, mkt_def_desc, store_panl_gid, study_anlys_typ_cde, extnd_lkbck_strt_dte, cohrt_strt_dte, cohrt_end_dte, study_end_dte, lkbck_prd_days_nbr, study

Re: $sth->execute(@$bindVars) is outputting an error

2006-04-01 Thread Jeffrey Seger
In order to figure out what's going awry, I'd need to see some code. Preferably the minimum amount necessary to replicate the error. Also, do you have multiple statement handles attached to this dbh? Try printing $sth->{Statement} rather than $dbh->{Statement}. Are you checking for errors at the