Below is the trace: Fyi: the perl script in question reads in metadata and builds out the create table statement then calls a procedure that does the prepare, execute and finish. For the trace I copied the CTAS it was executing and put it in a simple perl script with RaiseError. Just to see how that would work. With RaiseError it does not get an error, but you can see it is returning the undef. Thank you for the repsoneses so far.
DBI::st=HASH(0x15783d0) trace level set to 0x0/14 (DBI @ 0x0/0) in DB +I 1.609-ithread (pid 26383) -> execute for DBD::Oracle::st (DBI::st=HASH(0x16e9b28)~0x15783d0) + thr#154e010 dbd_st_execute CREATE (out0, lob0)... Statement Execute Mode is 0 (DEFAULT) OCIStmtExecute(19c18d8,19cd328,19b9f68,1,0,0,0,mode=DEFAULT,0) +=SUCCESS OCIAttrGet(19cd328,OCI_HTYPE_STMT,7fffb492eec8,0,OCI_ATTR_ROW_ +COUNT,19b9f68)=SUCCESS OCIAttrGet(19cd328,OCI_HTYPE_STMT,7fffb492eece,0,OCI_ATTR_SQLF +NCODE,19b9f68)=SUCCESS dbd_st_execute CREATE returned (SUCCESS, rpc2211750915, fn1, o +ut0) <- execute= undef at ./test_query.pl line 80 -> finish for DBD::Oracle::st (DBI::st=HASH(0x16e9b28)~0x15783d0) +thr#154e010 <- finish= 1 at ./test_query.pl line 98 -> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x15783d0)~INNER) thr +#154e010 dbd_st_destroy OCIHandleFree(19cd328,OCI_HTYPE_STMT)=SUCCESS <- DESTROY= undef

In reply to Re^2: sth->execute returns undef when successful by Anonymous Monk
in thread sth->execute returns undef when successful by Anonymous Monk

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.