Doctrine\DBAL\Platforms\SQLServerPlatform::getTableWhereClause PHP Метод

getTableWhereClause() приватный Метод

Returns the where clause to filter schema and table name in a query.
private getTableWhereClause ( string $table, string $schemaColumn, string $tableColumn ) : string
$table string The full qualified name of the table.
$schemaColumn string The name of the column to compare the schema to in the where clause.
$tableColumn string The name of the column to compare the table to in the where clause.
Результат string
    private function getTableWhereClause($table, $schemaColumn, $tableColumn)
    {
        if (strpos($table, ".") !== false) {
            list($schema, $table) = explode(".", $table);
            $schema = $this->quoteStringLiteral($schema);
            $table = $this->quoteStringLiteral($table);
        } else {
            $schema = "SCHEMA_NAME()";
            $table = $this->quoteStringLiteral($table);
        }
        return "({$tableColumn} = {$table} AND {$schemaColumn} = {$schema})";
    }
SQLServerPlatform