Doctrine\DBAL\Platforms\PostgreSqlPlatform::quoteStringLiteral PHP Method

quoteStringLiteral() public method

public quoteStringLiteral ( $str )
    public function quoteStringLiteral($str)
    {
        $str = str_replace('\\', '\\\\', $str);
        // PostgreSQL requires backslashes to be escaped aswell.
        return parent::quoteStringLiteral($str);
    }
PostgreSqlPlatform