in reply to DBI Question

The aove cited code looks suspicious to me. You are reassigning your database handle as a statement handle and then trying to treat it as a database handle again later on in your code.

When using DBI I normally use another variable as my statement handle thusly:

my $sth = $dbh->prepare("INSERT INTO vindbase_operator.mobily_vb_ +script_worklistv2 (worklistid, emstype, submitserver, submitdate, sub +mitowner, state, contents, contentscksum) VALUES (vindbase_operator.m +obily_vb_script_worklist_inc.nextval,?,?,to_date(?,'YYYY-MM-DD H H24:MI:SS'),?,?,?,?)") or die $dbh->errstr;
and then hopefully life goes on as normal. Use the $sth to execute your insert.

That's just the first thing that leaps to my attention...


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: DBI Question
by boodong (Novice) on Aug 25, 2011 at 19:29 UTC

    DOH! , I guess one can stare at code for hours and miss the glaringly obvious. Thanks for the set of eyes on this one ;)

      Been there... done that.   (Show of hands, please?)   See what I mean?   Yup, lots of bruised foreheads in the Monastery right now.   Such are the unfortunate drawbacks of a weakly-typed language.