Protected Member Functions | |
initTables () | |
initSequences () |
Definition at line 34 of file ODBCDatabaseInfo.php.
ODBCDatabaseInfo::initSequences | ( | ) | [protected] |
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 61 of file ODBCDatabaseInfo.php.
ODBCDatabaseInfo::initTables | ( | ) | [protected] |
Reimplemented from DatabaseInfo.
Definition at line 39 of file ODBCDatabaseInfo.php.
References $result.
00040 { 00041 include_once 'creole/drivers/odbc/metadata/ODBCTableInfo.php'; 00042 00043 $result = @odbc_tables($this->conn->getResource()); 00044 00045 if (!$result) 00046 throw new SQLException('Could not list tables', $this->conn->nativeError()); 00047 00048 while (odbc_fetch_row($result)) 00049 { 00050 $tablename = strtoupper(odbc_result($result, 'TABLE_NAME')); 00051 $this->tables[$tablename] = new ODBCTableInfo($this, $tablename); 00052 } 00053 00054 @odbc_free_result($result); 00055 }