public static function getCorrectSqlMode(string $sqlMode): string
  {
    $query = sprintf('set sql_mode = %s', self::$dl->quoteString($sqlMode));
    self::executeNone($query);

    $query = 'select @@sql_mode';

    return (string)self::executeSingleton1($query);
  }
public static function getCorrectSqlMode(string $sqlMode): string
  {
    $query = sprintf('set sql_mode = %s', self::$dl->quoteString($sqlMode));
    self::executeNone($query);

    $query = 'select @@sql_mode';

    return (string)self::executeSingleton1($query);
  }
public static function getCorrectSqlMode ( string $ sqlMode ) : string { $ query = sprintf ( 'set sql_mode = %s' , self :: $ dl -> quoteString ( $ sqlMode ) ) ; self :: executeNone ( $ query ) ; $ query = 'select @@sql_mode' ; return ( string ) self :: executeSingleton1 ( $ query ) ; }
Selects the SQL mode in the order as preferred by MySQL.

@param string $sqlMode The SQL mode.

@return string
Selects the SQL mode in the order as preferred by MySQL .