|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-07 18:37 UTC] alester at flr dot follett dot com
It seems that the when oci8.c forces value_sz to 1 if it's 0 is bypassing a perfectly valid use of a length of 0: To signify a null. See: http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a89857/oci03typ.htm PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
Thies sent this to me: to pass a null thru a bound variable simply assign the special value NULL to the bound php-variable. the size supplied to ocibindbyname is simple the max-length of the inbound variable. ocibindbyname($stmt,"NAME",$name,32); $name = NULL; ociexecute($stmt); -> ":NAME" will have the value null in the query please verify and close the report. It seems incorrect to me to tweak a value that the underlying API expects to be able to handle. Also, this handling of NULL should be documented in the OCIBindByName doc.