summaryrefslogtreecommitdiff
path: root/includes/database
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-10-05 07:53:07 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-10-05 07:53:07 -0700
commitfae103736b797c13b960bb041470b63013a393c2 (patch)
tree923cc93b36bebc0066866bd8610e260434167ad4 /includes/database
parent85875f3ac90cb5c4421517dab9339259cd0f81d6 (diff)
downloadbrdo-fae103736b797c13b960bb041470b63013a393c2.tar.gz
brdo-fae103736b797c13b960bb041470b63013a393c2.tar.bz2
Issue #1167218 by droplet, kathyh: Fixed DatabaseStatementInterface::fetch* - document what empty return value is.
Diffstat (limited to 'includes/database')
-rw-r--r--includes/database/database.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc
index c77bcffbf..3ca0f4710 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -1997,7 +1997,7 @@ interface DatabaseStatementInterface extends Traversable {
* The numeric index of the field to return. Defaults to the first field.
*
* @return
- * A single field from the next record.
+ * A single field from the next record, or FALSE if there is no next record.
*/
public function fetchField($index = 0);
@@ -2017,7 +2017,7 @@ interface DatabaseStatementInterface extends Traversable {
* helper method, so one is added.
*
* @return
- * An associative array.
+ * An associative array, or FALSE if there is no next row.
*/
public function fetchAssoc();
@@ -2045,7 +2045,7 @@ interface DatabaseStatementInterface extends Traversable {
* The index of the column number to fetch.
*
* @return
- * An indexed array.
+ * An indexed array, or an empty array if there is no result set.
*/
public function fetchCol($index = 0);
@@ -2065,7 +2065,7 @@ interface DatabaseStatementInterface extends Traversable {
* The numeric index of the field to use as the array value.
*
* @return
- * An associative array.
+ * An associative array, or an empty array if there is no result set.
*/
public function fetchAllKeyed($key_index = 0, $value_index = 1);
@@ -2084,7 +2084,7 @@ interface DatabaseStatementInterface extends Traversable {
* set for the query will be used.
*
* @return
- * An associative array.
+ * An associative array, or an empty array if there is no result set.
*/
public function fetchAllAssoc($key, $fetch = NULL);
}