php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7886 Return Columns
Submitted: 2000-11-20 05:25 UTC Modified: 2001-02-18 06:25 UTC
From: vvtk at stealthcomp dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.3pl1 OS: RedHat6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 - 3 = ?
Subscribe to this entry?

 
 [2000-11-20 05:25 UTC] vvtk at stealthcomp dot com
I don't know bug it or future.

Query:

SELECT a1.*,a2.*,a3.* FROM (SELECT VALUE FROM V$SYSSTAT WHERE NAME='db block gets') a1,(SELECT VALUE FROM V$SYSSTAT WHERE NAME='consistent gets') a2,(SELECT VALUE FROM V$SYSSTAT WHERE NAME='physical reads') a3

OCIFetchStatement return array with 1 field, but I expected 3 fields.

(SQLPlus return 3 fields).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 19:52 UTC] sniper@php.net
Does this happen with PHP 4.0.4 ?

--Jani
 [2001-01-09 06:41 UTC] vvtk at stealthcomp dot com
PHP 4.0.4 - same effect.
OCIFetchStatement return 1 column, but I expected 3 columns.

 [2001-02-18 06:25 UTC] thies@php.net
php does not allow two columns to have the same name! if i 
paste you select into sqlplus i get:

     VALUE      VALUE      VALUE
---------- ---------- ----------
     17069     157090       7984

do "select ... as col1, ... as col2" etc








 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC