note 2338 modified in function.ocinumcols by sixd
| From: | sixd@php.net | Date: | Thu, 08 Oct 2009 19:29:09 +0000 |
| Subject: | note 2338 modified in function.ocinumcols by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161554@lists.php.net to get a copy of this message | ||
The following is not immediately obvious:
If you need the number of columns in a REF CURSOR returned from a PL/SQL procedure, you need to use
OCINumColumns() on the cursor handle returned by OCINewCursor after it is bound and executed, not
the statement handle. Same applies for OCIColumnName() and friends.
--was--
The following is not immediately obvious:
If you need the number of columns in a REF CURSOR returned from a PL/SQL procedure, you need to use
OCINumColumns() on the cursor handle returned by OCINewCursor after it is bound and executed, not
the statement handle. Same applies for OCIColumnName() and friends.
http://php.net/manual/en/function.ocinumcols.php