Re: [PHP4BETA] OCIFetchInto bug
[email protected] Tue, 30 May 2000 11:19:33 +0200
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 30, 2000 at 11:19:44AM +0300, Vadim Tkachenko wrote:
> Two scripts
>
> First:
> <?
> echo "START\n";
> $c1 = OCIPLogon("...","...");
> echo OCIServerVersion($c1)."\n";
>
> $stmt=OCIParse($c1,"SELECT DESCR,MANU_PART FROM VVTK.PRODUCTS WHERE DESCR
> LIKE '%NETF%'");
>
> OCIExecute($stmt);
> OCIFetchInto($res,OCI_ASSOC);
OCIFetchInto($stmt,$res,OCI_ASSOC);
would be correct (& work)
tc
> echo $res["DESCR"]." ".$res["MANU_PART"];
>
>
> OCILogOff($c1);
> ?>
> When I run this script - in result empty page (without "START")
>
>
> <?
> echo "START<BR>\n";
> $c1 = OCIPLogon("...","...");
> echo OCIServerVersion($c1)."\n";
>
> $stmt=OCIParse($c1,"SELECT DESCR,MANU_PART FROM VVTK.PRODUCTS WHERE DESCR
> LIKE '%NETF%'");
>
> OCIExecute($stmt);
>
> OCILogOff($c1);
> ?>
> When I run this script - in result
>
> START
> Oracle8 Enterprise Edition Release 8.0.5.1.0 - Production
> With the Partitioning and Objects options
> PL/SQL Release 8.0.5.1.0 - Production
>
> This two scripts have small difference - one line with OCIFetchInto...
>
>
> Vadim Tkachenko.
>
>
>
>
>
>
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany