From:             ilya dot gruzinov at gmail dot com
Operating system: Debian stable
PHP version:      5.1.4
PHP Bug Type:     OCI8 related
Bug description:  error when updating BLOB

Description:
------------
When i try update BLOB(or CLOB) i receive oracle error.

This error persist in php4(
Warning: ociexecute(): OCIStmtExecute: ORA-01465: invalid hex number in
c:\inetpub\wwwroot\test3.php4 on line 7)

I use Oracle 10 database

Reproduce code:
---------------
<?php

$data = 'Some data';
$conn = oci_connect('test', 'test', 'test');
$query = "UPDATE TEST SET BL = :tst WHERE ID = 1"; //BL - field with type
BLOB
$stid = oci_parse($conn, $query);
oci_bind_by_name($stid, ':tst', $data);
$r = oci_execute($stid);
if ($r)
   print "One row updated";
oci_close($conn);
?>


Expected result:
----------------
One row updated

Actual result:
--------------
Warning: oci_execute() [function.oci-execute]: ORA-01465: invalid hex
number in /home/shagren/public_html/oracle10/test3.php on line 9


-- 
Edit bug report at http://bugs.php.net/?id=37460&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37460&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37460&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37460&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37460&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37460&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37460&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37460&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37460&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37460&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37460&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37460&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37460&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37460&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37460&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37460&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37460&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37460&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37460&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37460&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37460&r=mysqlcfg

Reply via email to