Same name and namespace in other branches
- 8.9.x core/includes/database.inc \db_and()
Returns a new DatabaseCondition, set to "AND" all conditions together.
Return value
Related topics
5 calls to db_and()
- DatabaseSelectComplexTestCase::testJoinConditionObject in modules/
simpletest/ tests/ database_test.test - Test that join conditions can use Condition objects.
- hook_query_TAG_alter in modules/
system/ system.api.php - Perform alterations to a structured query for a given tag.
- SearchQuery::parseSearchExpression in modules/
search/ search.extender.inc - Parses the search query into SQL conditions.
- _locale_translate_seek in includes/
locale.inc - Perform a string search and display results in a table
- _node_query_node_access_alter in modules/
node/ node.module - Helper for node access functions.
File
- includes/
database/ database.inc, line 2791 - Core systems for the database layer.
Code
function db_and() {
return new DatabaseCondition('AND');
}