php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56692 undefuned method fetchSingle
Submitted: 2005-12-03 18:18 UTC Modified: 2005-12-03 19:03 UTC
From: madmax at napisy dot org Assigned:
Status: Not a bug Package: PDO (PECL)
PHP Version: 5_1 CVS-2005-12-03 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: madmax at napisy dot org
New email:
PHP Version: OS:

 

 [2005-12-03 18:18 UTC] madmax at napisy dot org
Description:
------------
PDO version: 1.0.2
PDO_MYSQL version: 1.0.1
PHP Version: 5.1 (windows binaries, no cvs).


undefuned method fetchSingle BUG

Reproduce code:
---------------
$DB_Layer = new PDO("mysql:host=$db_server;dbname=$db_name", 
      $db_username, $db_password, 
      array(PDO::ATTR_PERSISTENT => $db_pconnect));
      

      
$results = $DB_Layer->query("SELECT * FROM session");
$results->fetchSingle();


Actual result:
--------------
Fatal error: Call to undefined method PDOStatement::fetchSingle() 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-03 19:03 UTC] wez@php.net
That's correct; there is no fetchSingle method.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 17:01:28 2025 UTC