lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
private function getTableWhereClause($table, $schemaColumn, $tableColumn)
    {
        if (strpos($table, '.') !== false) {
            [$schema, $table] = explode('.', $table);
            $schema           = $this->quoteStringLiteral($schema);
            $table            = $this->quoteStringLiteral($table);
        } else {
            $schema = 'SCHEMA_NAME()';
            $table  = $this->quoteStringLiteral($table);
        }

        return sprintf('(%s = %s AND %s = %s)', $tableColumn, $table, $schemaColumn, $schema);
    }
private function getTableWhereClause($table, $schemaColumn, $tableColumn)
    {
        if (strpos($table, '.') !== false) {
            [$schema, $table] = explode('.', $table);
            $schema           = $this->quoteStringLiteral($schema);
            $table            = $this->quoteStringLiteral($table);
        } else {
            $schema = 'SCHEMA_NAME()';
            $table  = $this->quoteStringLiteral($table);
        }

        return sprintf('(%s = %s AND %s = %s)', $tableColumn, $table, $schemaColumn, $schema);
    }
private function getTableWhereClause ( $ table , $ schemaColumn , $ tableColumn ) { if ( strpos ( $ table , '.' ) !== false ) { [ $ schema , $ table ] = explode ( '.' , $ table ) ; $ schema = $ this -> quoteStringLiteral ( $ schema ) ; $ table = $ this -> quoteStringLiteral ( $ table ) ; } else { $ schema = 'SCHEMA_NAME()' ; $ table = $ this -> quoteStringLiteral ( $ table ) ; } return sprintf ( '(%s = %s AND %s = %s)' , $ tableColumn , $ table , $ schemaColumn , $ schema ) ; }
Returns the where clause to filter schema and table name in a query.

@param string $table        The full qualified name of the table.
@param string $schemaColumn The name of the column to compare the schema to in the where clause.
@param string $tableColumn  The name of the column to compare the table to in the where clause.

@return string
Returns the where clause to filter schema and table name in a query .