function drush_db_fetch_object

8.0.x dbtng.inc drush_db_fetch_object($result)
6.x dbtng.inc drush_db_fetch_object($result)
7.x dbtng.inc drush_db_fetch_object($result)
3.x drush.inc drush_db_fetch_object($result)
4.x drush.inc drush_db_fetch_object($result)
5.x dbtng.inc drush_db_fetch_object($result)
master dbtng.inc drush_db_fetch_object($result)

A db_fetch_object() that works for any version of Drupal.

Parameters

A Database result object.:

4 calls to drush_db_fetch_object()
drush_core_watchdog_show_many in commands/core/watchdog.drush.inc
Print a table of watchdog messages.
drush_core_watchdog_show_one in commands/core/watchdog.drush.inc
Print a watchdog message.
drush_pm_disable in commands/pm/pm.drush.inc
Command callback. Disable one or more projects.
drush_pm_enable in commands/pm/pm.drush.inc
Command callback. Enable one or more projects.

File

includes/drush.inc, line 422
The drush API implementation and helpers.

Code

function drush_db_fetch_object($result) {
  return drush_drupal_major_version() >= 7 ? $result->fetchObject() : db_fetch_object($result);
}