function drush_db_fetch_object

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

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


A Database result object.:

Related topics

3 calls to drush_db_fetch_object()
drush_core_watchdog_show_many in commands/core/
Print a table of watchdog messages.
drush_core_watchdog_show_one in commands/core/
Print a watchdog message.
drush_get_named_extensions_list in commands/core/drupal/
Return a list of extensions from a list of named extensions. Both enabled and disabled/uninstalled extensions are returned.


includes/, line 188
Wrappers to abstract database operations from Drupal version.


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