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

quoteStringLiteral() public method

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