Protected Member Functions | |
initTables () | |
initSequences () | |
MySQL does not support sequences. |
Definition at line 31 of file MySQLDatabaseInfo.php.
MySQLDatabaseInfo::initSequences | ( | ) | [protected] |
MySQL does not support sequences.
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 62 of file MySQLDatabaseInfo.php.
MySQLDatabaseInfo::initTables | ( | ) | [protected] |
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 37 of file MySQLDatabaseInfo.php.
References $result.
00038 { 00039 include_once 'creole/drivers/mysql/metadata/MySQLTableInfo.php'; 00040 // using $this->dblink was causing tests to break 00041 // perhaps dblink is changed by another test ... ? 00042 $result = @mysql_query("SHOW TABLES FROM `" . $this->dbname . "`", $this->conn->getResource()); 00043 00044 if (!$result) { 00045 throw new SQLException("Could not list tables", mysql_error($this->conn->getResource())); 00046 } 00047 00048 while ($row = mysql_fetch_row($result)) { 00049 $this->tables[strtoupper($row[0])] = new MySQLTableInfo($this, $row[0]); 00050 } 00051 00052 $this->tablesLoaded = true; 00053 00054 }