PDO compatibilty function fetchSingle() was renamed in PDO to

fetchColumn($column_num=0): now both are available in ADOdb, thought
fetchSingle is depricated and should no longer be used!
This commit is contained in:
Ralf Becker 2009-03-25 09:03:36 +00:00
parent cc9d7445c3
commit 3b0f5e5ab2
2 changed files with 727 additions and 705 deletions

File diff suppressed because it is too large Load Diff

View File

@ -30,8 +30,8 @@
*
* c) foreach($db->select($table,'*',$where,__LINE__,__FILE__,false,'',$app) as $row)
*
* To fetch only single column (of the next row):
* $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchSingle();
* To fetch only a single column (of the next row):
* $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchColumn($column_num=0);
*
* To fetch a next (single) row, you can use:
* $row = $db->query("SELECT COUNT(*) FROM ...")->fetch($fetchmod=null);