Changeset 243
- Timestamp:
- 02/09/07 01:08:40 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/rdbms/pdo/stubDatabasePDOConnection.php
r174 r243 289 289 } 290 290 } 291 292 /** 293 * returns the database name (e.g. MySQL or PostgreSQL) 294 * 295 * @return string 296 */ 297 public function getDatabase() 298 { 299 $dsnParts = explode(':', $this->connectionData->getDSN()); 300 return $dsnParts[0]; 301 } 291 302 } 292 303 ?> trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnection.php
r173 r243 81 81 * @param string $sql the sql query to use 82 82 * @param array $driverOptions optional one or more driver specific options for the call to query() 83 * @return stubDatabase Statement83 * @return stubDatabaseResult 84 84 * @throws stubDatabaseException 85 85 */ … … 104 104 */ 105 105 public function getLastInsertID($name = null); 106 107 /** 108 * returns the database name (e.g. MySQL or PostgreSQL) 109 * 110 * @return string 111 */ 112 public function getDatabase(); 106 113 } 107 114 ?>
