PDO

pecl::PDO

AdvancedSearch | AreaMap ]

Search:

  Welcome   Installation   FAQ   User Notes   Links  
  User Notes   bindParam   DSN   exec   API differences   fetchCol   setAttribute   API  

Username:

Password:


Areas In
This Wiki

BEPHPUG

Conferences

emPHPower

LiveUser

Main

MDB2

PDO

PHPSVN

PHPTODO

RDBMS

WebBuilder2

fetchSingle

In DB and MDB equivalent methods are called fetchOne(). It would therefore be nice PDO could follow such widely established standards in method naming. Also fetch one is more descriptive since fetchSingle() could be mistaken for a single row or column. Finally fetchOne() is even slightly shorter.

PDO:fetchSingle (212.202.40.148)
Thu, 17 Mar 2005, 16:17
[ Links | Source | History | RSS ]

This site powered by YaWiki 0.22 beta.


smith [AT] backendmedia [DOT] com
2005-03-17 11:23:03 (12)
Yes that is correct. But getOne() (DB, MDB, MDB2), queryOne() (MDB, MDB2), fetchOne() (MDB, MDB2) are clearly related to eachother in terms of naming where as fetchSingle() could be anything new for users.
anonymous
2005-03-17 11:20:08 (11)
Lukas, PEAR DB uses GetOne AFAIK.

Add A Comment
Email:
*Comment:
Catpcha:
* denotes required field

Your comment will be added immediately; please check your comments, and be nice. :-)

Please use plain text only; HTML and PHP code will be converted to entities.

Your email address will be obfuscated with [AT] and [DOT] after you post your comment.

API differences
fetch
fetchSingle