Re: Oracle Execute Function
| From: | Brad Bonkoski | Date: | Thu, 18 Jan 2007 17:13:28 +0000 |
| Subject: | Re: Oracle Execute Function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247356@lists.php.net to get a copy of this message | ||
Brad Bonkoski wrote:
Roman Neuhauser wrote:PL/SQL: numeric or value error: character string buffer too small Does this trigger any ideas?# bbonkoski@mediaguide.com / 2007-01-18 11:46:10 -0500:Nothing of real use from what I can see.. It falls into this statement: die('Invalid Statement: ' . $stmt .'('.$query.')'. ' ' . htmlentities($error['message'])); So, I get this message back (and the error['message'] part is blank. It gets there from this: $result = @ociexecute($stmt); if(!$result) { ... } so the return from ociexecute appears to be FALSE. After removing the '@' from the ociexecute ... I get this:Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;";And the warning is...?$stmt = $db->parse($sql); $rc = null; ocibindbyname($stmt, ":result", &$rc); $db->execute($stmt, $sql);The problem is that the execute function spits back an error/warning message, but the Oracle function properly executes and the data is in the Database.