lib/Mysql/Options.php
public function escapeIdentifier(string $identifier): string
    {
        if ($identifier === '') {
            throw new \InvalidArgumentException('Identifier cannot be blank');
        }

        $escaper = function ($identifier) { return '`' . str_replace('`', '``', $identifier) . '`'; };
        $qualifiedIdentifiers = array_map($escaper, explode('.', $identifier));
        return implode('.', $qualifiedIdentifiers);
    }
public function escapeIdentifier(string $identifier): string
    {
        if ($identifier === '') {
            throw new \InvalidArgumentException('Identifier cannot be blank');
        }

        $escaper = function ($identifier) { return '`' . str_replace('`', '``', $identifier) . '`'; };
        $qualifiedIdentifiers = array_map($escaper, explode('.', $identifier));
        return implode('.', $qualifiedIdentifiers);
    }
public function escapeIdentifier ( string $ identifier ) : string { if ( $ identifier === '' ) { throw new \ InvalidArgumentException ( 'Identifier cannot be blank' ) ; } $ escaper = function ( $ identifier ) { return '`' . str_replace ( '`' , '``' , $ identifier ) . '`' ; } ; $ qualifiedIdentifiers = array_map ( $ escaper , explode ( '.' , $ identifier ) ) ; return implode ( '.' , $ qualifiedIdentifiers ) ; }
use backticks to delimit identifiers since not everyone uses ANSI mode
use backticks to delimit identifiers since not everyone uses ANSI mode