function drush_db_result

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

A db_result() that works consistently for any version of Drupal.


A Database result object.:

Related topics

9 calls to drush_db_result()
drush_core_find_project_path in commands/core/
drush_user_add_role in commands/user/
Add a role to the specified user accounts.
drush_user_cancel in commands/user/
Cancels a user account.
drush_user_create in commands/user/
Creates a new user account.
drush_user_remove_role in commands/user/
Remove a role from the specified user accounts.

... See full list


includes/, line 167


function drush_db_result($result) {
  switch (drush_drupal_major_version()) {
    case 6:
      return db_result($result);
    case 7:
      return $result->fetchField();