Please help...
I'm attempting to call an oracle function which takes a date as one of it's input parameters... I do this...
$cursor = $dbh->prepare("BEGIN create_person( ?, ?, ?, ?, ?, ?, ?, ?,
+?, ? ); END;");
$cursor->bind_param(1, $title);
$cursor->bind_param(2, $name);
$cursor->bind_param(3, $surname);
$cursor->bind_param(4, $sex);
$cursor->bind_param(5, $date);
$cursor->bind_param(6, $origin);
$cursor->bind_param(7, $user);
$cursor->bind_param_inout(8, \$person, 10);
$cursor->bind_param_inout(9, \$errCode, 1024);
$cursor->bind_param_inout(10, \$errNum, 1024);
$cursor->execute();
I get:
ORA-06512: at "OWNER.CREATE_PERSON", line 164
ORA-06512: at line 1
ORA-01461: can bind a LONG value only for insert into a LONG column (DBD ERROR: OCIStmtExecute)
Narrowed it down to the date field (but i could be wrong).... Any ideas what's going on?
Cheers in advance!
janitored by ybiC: <code> tags around code, <tt> tags around error message
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.