Same name and namespace in other branches
  1. 8.9.x core/includes/database.inc \db_or()

Returns a new DatabaseCondition, set to "OR" all conditions together.

Return value

DatabaseCondition

Related topics

15 calls to db_or()
DatabaseSelectComplexTestCase::testNestedConditions in modules/simpletest/tests/database_test.test
Confirm that we can properly nest conditional clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate in modules/simpletest/tests/database_test.test
Test updates with OR conditionals.
hook_query_TAG_alter in modules/system/system.api.php
Perform alterations to a structured query for a given tag.
node_add_node_grants_to_query in modules/node/node.module
Helper function to create the or condition for a node grants check.
SearchQuery::executeFirstPass in modules/search/search.extender.inc
Executes the first pass query.

... See full list

File

includes/database/database.inc, line 2782
Core systems for the database layer.

Code

function db_or() {
  return new DatabaseCondition('OR');
}