. */ require_once 'creole/metadata/DatabaseInfo.php'; /** * ODBC implementation of DatabaseInfo. * * @todo Still need a way to obtain the database name. Not sure how to do this yet. * @todo This might need to be an {@link ODBCAdapter} method. * * @author Dave Lawson * @version $Revision: 1.2 $ * @package creole.drivers.odbc.metadata */ class ODBCDatabaseInfo extends DatabaseInfo { /** * @see DatabaseInfo::initTables() */ protected function initTables() { include_once 'creole/drivers/odbc/metadata/ODBCTableInfo.php'; $result = @odbc_tables($this->conn->getResource()); if (!$result) throw new SQLException('Could not list tables', $this->conn->nativeError()); while (odbc_fetch_row($result)) { $tablename = strtoupper(odbc_result($result, 'TABLE_NAME')); $this->tables[$tablename] = new ODBCTableInfo($this, $tablename); } @odbc_free_result($result); } /** * @return void * @throws SQLException */ protected function initSequences() { // Not sure how this is used yet. } }