function DatabaseSchema_pgsql::buildTableNameCondition

Build a condition to match a table name against a standard information_schema.

In PostgreSQL "unquoted names are always folded to lower case." The pgsql driver does not quote table names, so they are therefore always lowercase.

Parameters

$table_name: The name of the table in question.

$operator: The operator to apply on the 'table' part of the condition.

$add_prefix: Boolean to indicate whether the table name needs to be prefixed.

Return value

QueryConditionInterface A DatabaseCondition object.

Overrides DatabaseSchema::buildTableNameCondition

See also

https://www.postgresql.org/docs/14/sql-syntax-lexical.html

File

includes/database/pgsql/schema.inc, line 852

Class

DatabaseSchema_pgsql

Code

protected function buildTableNameCondition($table_name, $operator = '=', $add_prefix = TRUE) {
    return parent::buildTableNameCondition(strtolower($table_name), $operator, $add_prefix);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.