Subversion Repositories PHPX

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

1
<?php

require_once __DIR__ . '/ODBCDB.php';

class AccessDB extends ODBCDB
{
  /**
   * Escapes a database name so that it can be used in a query.
   *
   * @param string $name
   *   The name to be escaped
   * @return string
   *   The escaped name
   */

  public function escapeName($name)
  {
    return '[' . $name . ']';
  }

  /**
   * (non-PHPdoc)
   * @see Database::_escapeAliasArray()
   */

  protected function _escapeAliasArray(array &$array)
  {
    foreach ($array as $column => &$value)
    {
      $value = $value . ' AS [' . $column . ']';
    }
 
    return $array;
  }
}