note 83102 added to function.oci-bind-by-name
| From: | sixd@php.net | Date: | Fri, 09 May 2008 23:11:13 +0000 |
| Subject: | note 83102 added to function.oci-bind-by-name | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139228@lists.php.net to get a copy of this message | ||
For IN string binds (i.e. INSERT or passing a value into a PL/SQL
procedure) where the length is not known when binding, use a length
that is longer than the longest possible string. If you don't know
what this is in advance, then re-call oci_bind_by_name() with the
actual size prior to each oci_execute() call.
For OUT binds, always specify a length so that PHP allocates enough
memory to hold the returned value.
The cardinal rule for binding is that the memory address used in the
bind call must continue to exist and be usable when the oci_execute
occurs. This is the common problem with 'foreach' loops.
----
Server IP: 69.147.83.197
Probable Submitter: 148.87.1.171
----
Manual Page -- http://www.php.net/manual/en/function.oci-bind-by-name.php
Edit -- https://master.php.net/note/edit/83102
Del: integrated -- https://master.php.net/note/delete/83102/integrated
Del: useless -- https://master.php.net/note/delete/83102/useless
Del: bad code -- https://master.php.net/note/delete/83102/bad+code
Del: spam -- https://master.php.net/note/delete/83102/spam
Del: non-english -- https://master.php.net/note/delete/83102/non-english
Del: in docs -- https://master.php.net/note/delete/83102/in+docs
Del: other reasons-- https://master.php.net/note/delete/83102
Reject -- https://master.php.net/note/reject/83102
Search -- https://master.php.net/manage/user-notes.php