]> granicus.if.org Git - php/commitdiff
fix LOBs internal position in Unicode mode
authorAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 10:31:22 +0000 (10:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 10:31:22 +0000 (10:31 +0000)
ext/oci8/oci8_lob.c

index d1d03972c9154474a0818b39c0715058f217c69b..d20c464ac30e71abea95788c80f749582b2a4e58 100644 (file)
@@ -345,11 +345,7 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, long read_length, long ini
        );
        
        efree(bufp);
-       if (lob_type == OCI_IS_BLOB) {
-               offset = descriptor->lob_current_position + TEXT_BYTES(bytes_read);
-       } else {
-               offset = descriptor->lob_current_position + bytes_read;
-       }
+       offset = descriptor->lob_current_position + bytes_read;
 
 #endif