From fae103736b797c13b960bb041470b63013a393c2 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 5 Oct 2011 07:53:07 -0700 Subject: Issue #1167218 by droplet, kathyh: Fixed DatabaseStatementInterface::fetch* - document what empty return value is. --- includes/database/database.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes/database') 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); } -- cgit v1.2.3