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
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:
44 + 50 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC