MySQLDatabaseInfo Class Reference

Inheritance diagram for MySQLDatabaseInfo:

DatabaseInfo

List of all members.

Protected Member Functions

 initTables ()
 initSequences ()
 MySQL does not support sequences.


Detailed Description

Definition at line 31 of file MySQLDatabaseInfo.php.


Member Function Documentation

MySQLDatabaseInfo::initSequences (  )  [protected]

MySQL does not support sequences.

Returns:
void
Exceptions:
SQLException 

Reimplemented from DatabaseInfo.

Definition at line 62 of file MySQLDatabaseInfo.php.

00063     {
00064         // throw new SQLException("MySQL does not support sequences natively.");
00065     }

MySQLDatabaseInfo::initTables (  )  [protected]

Exceptions:
SQLException 
Returns:
void

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     }


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8